Revision 1b2ef48b
Von Moritz Bunkus vor mehr als 9 Jahren hinzugefügt
SL/ClientJS.pm | ||
---|---|---|
118 | 118 |
reinit_widgets => 0, # kivi.reinit_widgets() |
119 | 119 |
run => -1, # kivi.run(<TARGET>, <ARGS>) |
120 | 120 |
run_once_for => 3, # kivi.run_once_for(<TARGET>, <ARGS>) |
121 |
|
|
122 |
scroll_into_view => 1, # $(<TARGET>)[0].scrollIntoView() |
|
121 | 123 |
); |
122 | 124 |
|
123 | 125 |
sub AUTOLOAD { |
js/client_js.js | ||
---|---|---|
131 | 131 |
else if (action[0] == 'reinit_widgets') kivi.reinit_widgets(); |
132 | 132 |
else if (action[0] == 'run') kivi.run(action[1], action.slice(2, action.length)); |
133 | 133 |
else if (action[0] == 'run_once_for') kivi.run_once_for(action[1], action[2], action[3]); |
134 |
else if (action[0] == 'scroll_into_view') $(action[1])[0].scrollIntoView(); |
|
134 | 135 |
|
135 | 136 |
else console.log('Unknown action: ' + action[0]); |
136 | 137 |
|
Auch abrufbar als: Unified diff
ClientJS: DOM-Funktion scrollIntoView() als ClientJS->scroll_into_view implementiert