Class Banana.Util.DomHelper
Defined in: DomHelper.js.
Method Detail
Mark all controls as cleared. Method is used during page transitions where new pages are rendered first, before the old one is removed. TODO: potentialy dangerous if user already used 'cleared' id somewhere. I suggest different id
- Parameters:
- {String} id
- used to mark dom elements
dedicated function to retreive data from checkboxes
- Parameters:
- {Banana.Controls.Checkbox} control
- Returns:
- {String}
gets data from dom data control
- Parameters:
- {Banana.Control} control
- Returns:
- {String}
removes control from dom. removing also removes all child dom elements
- Parameters:
- {Banana.Control} control
renders control to target
- Parameters:
- {String} data
- {mixed} target
- Banana.Control or dom id
renders plain html to target
- Parameters:
- {String} data
- {mixed} target
- Banana.Control or dom id
- {boolean} dontAppend
- If true we replace existing data. Otherwise append
replaces content with another
- Parameters:
- {String} data
- {mixed} target
- Banana.Control or dom id
Dedictated function to set data on checkboxes
- Parameters:
- {String} value
- {Banana.Controls.Checkbox} control
sets data on dom element.
- Parameters:
- {String} value
- {Banana.Control} control
Dedicated function to set text data on labels
- Parameters:
- {String} value
- {Banana.Controls.Label} control