...
- call button.requestUpdate(true) on ribbon action item
- call window.requestRibbonRender() on window component.
6.2. listeners
6.2.1 view listener structure
Listeners are methods that will be executed when specified event is fired. Every listener has structure:
...
- eventname - name of event on which this lisiner is waiting
- className - class (path + name) which contains listener method
- beanMethod - name of listener method that should be executed when event is fired
6.2.2 view listener event names
name | usage |
---|
onInputChange | Code Block |
---|
| <layoutElement column="2" row="2">
<component type="input" name="quantity" field="quantity" reference="quantity">
<option type="alignment" value="right" />
<listener event="onInputChange" method="someMethod" class="someClass" />
</component>
</layoutElement>
|
|
onSelectedEntityChange | Code Block |
---|
| <layoutElement column="2" row="1">
<component type="lookup" name="product" reference="product" field="product">
<option type="column" name="name" fields="name" link="true" />
<option type="searchable" value="name,number" />
<option type="orderable" value="name,number" />
<option type="expression" value="#number + ' - ' + #name" />
<option type="fieldCode" value="number" />
<listener event="onSelectedEntityChange" method="someMethod" class="someClass" />
</component>
</layoutElement> |
|
For more informations about listeners see 'view listeners section'.
Anchor |
---|
| rowStyleResolvers |
---|
| rowStyleResolvers |
---|
|
...