Docs
API
-
Config
- barHeight
-
bbar
- bbarHeight
-
buttons
- buttonsHeight
- cls
- defaults
- draggable
-
events
-
footer
- height
- id
- i18n
-
items
- column
-
data
- defaults
- disabled
- displayKey
- editable
- emptyText
- events
-
format
- itemCheckBox
- inputHeight
- inputLabel
- inputWidth
- label
- labelAlign
- labelWidth
- listItemTpl
- leftTpl
- leftWidth
- max
- min
- minListWidth
- multiSelect
- multiToggle
- name
- showPassTip
- spin
- step
- subSearch
- tabIndex
- tip
- type
- value
- valueKey
- vtype
- width
-
lang
-
date
- method
- modal
- params
- renderOuter
- renderTo
- scrollable
- shadow
-
subTitle
-
subTBar
- allowToggle
- action
- cls
- data
- disabled
- displayKey
- editable
- emptyText
- enableToggle
- events
- format
- handler
- hidden
- id
- imageCls
- inputHeight
- itemCheckBox
- leftTpl
- leftWidth
- max
- menu
- minListWidth
- multiSelect
- multiToggle
- paramsMenu
- paramsText
- pressed
- spin
- step
- subSearch
- text
- tip
- toggleGroup
- type
- valueKey
- vtype
- width
- subTBarHeight
-
tbar
- allowToggle
- action
- cls
- data
- disabled
- displayKey
- editable
- emptyText
- enableToggle
- events
- format
- handler
- hidden
- id
- imageCls
- inputHeight
- itemCheckBox
- leftTpl
- leftWidth
- max
- menu
- minListWidth
- multiSelect
- multiToggle
- paramsMenu
- paramsText
- pressed
- spin
- step
- subSearch
- text
- tip
- toggleGroup
- type
- valueKey
- vtype
- width
- tbarHeight
-
title
Methods
var form = new FancyForm({ ... })
To use methods immediately after initialize widget read the following note.
If library was included fully
Than methods available immediately.<script src="http://cdn.fancygrid.com/fancy.full.min.js"></script>
var form = new FancyForm({ ... }); form.setTitle('new Title');
Library needs a moment to load required modules.
So it needs to wait till library would be inited.
For that use eventinit
var form = new FancyForm({ ..., events: [{ init: function(){ formInitedFn(); } }], ... }); function formInitedFn(){ form.setTitle('new Title'); }
To get link on widget from any place there are 2 approaches.
If it was set renderTo property than use
FancyForm.get('renderToID')
new FancyForm({ renderTo: 'formOptions', ... }); function updateGridTitle(){ var form = FancyForm.get('formOptions'); form.setTitle('New Title'); }
Another approach to set id and to use
Fancy.getWidget('formId')
new FancyForm({ id: 'myForm', ... }); function updateFormTitle(){ var form = Fancy.getWidget('myForm'); form.setTitle('New Title'); }
-
date