viscreation / vis-ui.js
JavaScript UI generator framework based on jQuery UI and some other elements
Installs: 6 218
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Open Issues: 0
Language:JavaScript
Type:component
Requires
- components/bootstrap: 3.*
- components/font-awesome: ^3.0 || ^4.0 || ^5.0
- components/jquery: 1.* || 2.*
- components/jqueryui: 1.*
- components/underscore: 1.8.*
- datatables/datatables: ^1.10.16
- debugteam/bootstrap-colorpicker: 1.*
- medialize/jquery-context-menu: 1.*
- robloach/component-installer: 0.2.*
- select2/select2: ^4.0
- wheregroup/jquerydialogextendjs: 2.x
Conflicts
- mapbender/digitizer: <1.1.67
- 0.2.84
- 0.1.2
- 0.1.1
- 0.1.0
- dev-master / 0.0.x-dev
- 0.0.70
- 0.0.69
- 0.0.68
- 0.0.67
- 0.0.66
- 0.0.65
- 0.0.64
- 0.0.63
- 0.0.62
- 0.0.61
- 0.0.60
- 0.0.59
- 0.0.58
- 0.0.57
- 0.0.56
- 0.0.55
- 0.0.54
- 0.0.53
- 0.0.52
- 0.0.51
- 0.0.50
- 0.0.49
- 0.0.48
- 0.0.47
- 0.0.46
- 0.0.45
- 0.0.44
- 0.0.43
- 0.0.42
- 0.0.41
- 0.0.40
- 0.0.39
- 0.0.38
- 0.0.37
- 0.0.36
- 0.0.35
- 0.0.34
- 0.0.33
- 0.0.32
- 0.0.31
- 0.0.30
- 0.0.29
- 0.0.28
- 0.0.27
- 0.0.26
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-bugfix/tabCreationWithAnchor
- dev-release/0.1
- dev-feature/composerupdate
- dev-feature/accordion-view
This package is not auto-updated.
Last update: 2024-11-10 20:03:48 UTC
README
This package provides JavaScript UI generator based on Bootstrap and jQuery UI.
Features
- Generate form and input elements
- Check and fill form
- Tab navigation
Examples
Elements
Description how to use element generator.
Input
$("<div/>").generateElements({ type: "input", name: "name", title: "Input", placeholder: "Enter the name", mandatory: true, cssClass: "input-css", css: {width: "80%"} })
Options
- name: Field name
- title: Title string
- placeholder: Place holder in the input field
- mandatory: Mandatory field: true, false or ReExpr ("/^\d+$/g" - only decimals)
- cssClass: CSS class name
- css: Custom CSS styles object. Example: {width: "80%"}
- value: Default value
Text area
$("<div/>").generateElements({ type: "textArea", name: "description" , title: "Description", placeholder: "Enter the description", })
Options
- name: Field name
- title: Title string
- placeholder: Place holder in the input field
- mandatory: Mandatory field: true, false or ReExpr ("/^\d+$/g" - only decimals)
- cssClass: CSS class name
- css: Custom CSS styles object. Example: {width: "80%"}
- value: Default value
Check box
$("<div/>").generateElements({ type: "checkbox", name: "check1", title: "Checkbox", mandatory: true, cssClass: "input-css", css: {width: "80%"} })
Options
- name: Field name
- title: Title string
- placeholder: Place holder in the input field
- mandatory: Mandatory field: true, false or ReExpr ("/^\d+$/g" - only decimals)
- cssClass: CSS class name
- css: Custom CSS styles object. Example: {width: "80%"}
- value: Default value
Radio button
$("<div/>").generateElements({children:[{ type: "radio", name: "yesNo", title: "Yes", css: {width: 50%} },{ type: "radio", name: "yesNo", title: "no", css: {width: 50%} }]})
Options
- name: Field name
- title: Title string
- placeholder: Place holder in the input field
- mandatory: Mandatory field: true, false or ReExpr ("/^\d+$/g" - only decimals)
- cssClass: CSS class name
- css: Custom CSS styles object. Example: {width: "80%"}
- value: Default value
Select
$("<div/>").generateElements({type: "select", value: "de", options: {en:"English", de: "German"} })
Options
- name: Field name
- title: Title string
- mandatory: Mandatory field: true, false or ReExpr ("/^\d+$/g" - only decimals)
- cssClass: CSS class name
- css: Custom CSS styles object. Example: {width: "80%"}
- value: Default value
- options: key/values object or array
- multiply: Multiply selection. Default false
Basic usage example:
var $div = $("<div/>"); $div.generateElements({children:[{ type: 'input', title: "Input", placeholder: "placeholder value", mandatory: true },{ type: 'input', name: "input2", title: "Input #2", placeholder: "placeholder value #2" }]}); $div.popupDialog({ title: "Demo", maximizable: true, buttons: [{ text: "OK", click: function(e) { var div = $(e.currentTarget).closest(".ui-dialog").find(".popup-dialog"); div.popupDialog('close'); } }] });
Integration
Extend composer dependencies with eslider/vis-ui.js and update composer.
composer update
Load JS library to HTML.
<script src="web/assets/vis-ui.js/vis-ui.js-built.js"></script>
Add CSS styles.
<link media="all" type="text/css" rel="stylesheet" href="web/assets/require.css">
Package Managers
- Composer:
viscreation/vis-ui.js