Esempio n. 1
0
    columns=cols,
    paging=True,
    pageLength=9,
    scrollX=True,
    columnDefs=[{"render": """<svg width="156" height="20"><g></g></svg>""", "orderable": False, "targets": 3}],
    sDom='<"top">rt<"bottom"lp><"clear">',
    deferRender=True,
    initComplete=addfunc,
    drawCallback=drawfunc,
)


app = Flask(__name__)
tb.register_route(app)

ui = SimpleComponent("Table", "./static/bower_components/pyxley/build/pyxley.js", "component_id", tb.params)

sb2 = SelectButton("SelectButton", ["Item1", "Item2"], "slide2", tb.params)
ui2 = SimpleComponent("SelectButton", "./static/bower_components/pyxley/build/pyxley.js", "slide2", sb2.params)

# ui2.add_filter(sb2)

sb = ui.render("./static/layout.js")
sb1 = ui2.render("./static/layout2.js")
# sb2s = sb2.register_route(app)
# sb2s = sb2.to_js()


@app.route("/test", methods=["GET"])
def testtest():
    return jsonify(jsfunc)
Esempio n. 2
0
               scrollX=True,
               columnDefs=[{
                   "render": """<svg width="156" height="20"><g></g></svg>""",
                   "orderable": False,
                   "targets": 3
               }],
               sDom='<"top">rt<"bottom"lp><"clear">',
               deferRender=True,
               initComplete=addfunc,
               drawCallback=drawfunc)

app = Flask(__name__)
tb.register_route(app)

ui = SimpleComponent("Table",
                     "./static/bower_components/pyxley/build/pyxley.js",
                     "component_id", tb.params)

sb2 = SelectButton("SelectButton", ["Item1", "Item2"], "slide2", tb.params)
ui2 = SimpleComponent("SelectButton",
                      "./static/bower_components/pyxley/build/pyxley.js",
                      "slide2", sb2.params)

#ui2.add_filter(sb2)

sb = ui.render("./static/layout.js")
sb1 = ui2.render("./static/layout2.js")
#sb2s = sb2.register_route(app)
#sb2s = sb2.to_js()

Esempio n. 3
0
        "orderable": False,
        "targets": 3
    }],
    sDom='<"top">rt<"bottom"lp><"clear">',
    deferRender=True,
    initComplete=addfunc,
    drawCallback=drawfunc)


app = Flask(__name__)
tb.register_route(app)


ui = SimpleComponent(
    "Table",
    "pyxley",
    "component_id",
    tb.params
)

sb = ui.render("./project/static/layout.js")

# Create a webpack file and bundle our javascript
from pyxley.utils import Webpack
wp = Webpack(".")
wp.create_webpack_config(
    "layout.js",
    "./project/static/",
    "bundle",
    "./project/static/"
)
wp.run()
Esempio n. 4
0
File: app.py Progetto: Dmdv/pyxley
        "orderable": False,
        "targets": 3
    }],
    sDom='<"top">rt<"bottom"lp><"clear">',
    deferRender=True,
    initComplete=addfunc,
    drawCallback=drawfunc)


app = Flask(__name__)
tb.register_route(app)


ui = SimpleComponent(
    "Table",
    "./static/bower_components/pyxley/build/pyxley.js",
    "component_id",
    tb.params
)

sb = ui.render("./static/layout.js")

@app.route('/test', methods=["GET"])
def testtest():
    return jsonify(jsfunc)

@app.route('/', methods=["GET"])
@app.route('/index', methods=["GET"])
def index():
    _scripts = [
        "./layout.js"
        ]
Esempio n. 5
0
        "render": """<svg width="156" height="20"><g></g></svg>""",
        "orderable": False,
        "targets": 3
    }],
    sDom='<"top">rt<"bottom"lp><"clear">',
    deferRender=True,
    initComplete=addfunc,
    drawCallback=drawfunc)


app = Flask(__name__)
tb.register_route(app)

ui = SimpleComponent(
    "Table",
    "./static/bower_components/pyxley/build/pyxley.js",
    "component_id",
    tb.params
)

sb = ui.render("./static/layout.js")

@app.route('/test', methods=["GET"])
def testtest():
    return jsonify(jsfunc)

@app.route('/', methods=["GET"])
@app.route('/index', methods=["GET"])
def index():
    _scripts = [
        "./layout.js"
        ]