cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-02-01 23:36:09 +03:00
parent 6ec6bc7e3c
commit 7c2cf52efa

View File

@ -1616,34 +1616,23 @@ var WidgetTestActions = actions.Actions({
make('Normal item') make('Normal item')
make.Editable('Select to edit...') // this is the same as make('...')
make.Separator()
make.Editable('Enter to edit (cleared)...', { make.Editable('Editable (Select to edit)')
make.Editable('Editable (Enter to edit, cleared)...', {
start_on: 'open', start_on: 'open',
clear_on_edit: true, clear_on_edit: true,
}) })
e = make.Editable('Nested editable...') make.Heading('List:')
e.parent().append($('<div>').append(e))
// this is the same as make('...')
make.Separator()
make.List(['a', 'b', 'c']) make.List(['a', 'b', 'c'])
make.Separator() make.Separator()
make.EditableList(['x', 'y', 'z']) make.EditableList(['x', 'y', 'z'])
make.Separator()
// XXX BUG: this does not respond well to clicks...
// ...this occurs on click ig 'start_on' is 'select' (default)
// for some reason this triggers .update() on the dialog...
make.Editable('Editable (bug)', {
clear_on_edit: true,
})
// NOTE: the dialog's .parent is not yet set at this point... // NOTE: the dialog's .parent is not yet set at this point...
// This will finalize the dialog... // This will finalize the dialog...