Skip to content

Commit a59a910

Browse files
github-actions[bot]romaninshPhilippGrashoffabbadon1334ibelar
committed
Releasing refs/heads/release/2.0.4 into master (#882)
* Update to changes in Modal.php * add ignore E_DEPRECATED & E_USER_DEPRECATED * add App->catch_error_types to define error types in set_error_handler * fix/#802 Array fields error in form * Apply fixes from StyleCI * Fix #8ß5 * Allow to add Attributes to <input> tag New property added: $this->inputAttr in which additional attributes are stored New function added: setInputAttr() which is a clone of View->setAttr() which fills the $this->inputAttr array Can also be used to overwrite existing attributes as $this->inputAttr is passed as second param to array_merge (at $this->app->getTag()) * update to use inputAttr * update to use inputAttr * update to use inputAttr * update to use inputAttr * style CI fixes * styleCI fixes * Add demo for custom <input> Attributes * add another demo field which uses array definition * Update TypeText.php to pass check * Fix autocomplete.html * Fix lookup.html * Fix autocomplete.pug * Fix lookup.pug * init - add jsCallback when adding or deleting a row. * feature/TreeItemSelector Form Field Initial commit * Apply fixes from StyleCI * Make Escape key clear Grid Search * feature/MultiLine Enhancement - Ability to run js when adding or deleting row. - Add new line of record when tabbing out of the last row/column * Apply fixes from StyleCI * start implementation * Apply fixes from StyleCI * remove test * changed example for ibelar * Apply fixes from StyleCI * some more notes wip * Apply fixes from StyleCI * test * Mutliline: Improve inline docs and comments (#811) * Improve inline docs and comments * Update MultiLine.php * initial testing * Fix #814 - useless code in Form.php (#818) * Fix #814 - useless code in Form.php * Update Form.php * Add Locale class * Apply fixes from StyleCI * add LocaleTest * Apply fixes from StyleCI * Update LocaleTest.php * Add credits to Lokalize services * Create .empty * Delete .empty * Fix Locale.php * refactor * code review and refactor * Apply fixes from StyleCI * updare demo * type hint and cleanup * Apply fixes from StyleCI * js cleanup and comment * add more demo * Typo. * update userAction move loader set function to jsRender so we could apply afterSuccess or jsSuccess after setAction is done. Add jsSuccess and stateContext * Apply fixes from StyleCI * fix * Feature/fix textarea (#822) * fix TextArea and DropDown zero and empty values * Apply fixes from StyleCI * Enhance Form Testing suite * Apply fixes from StyleCI * fix * fix * #823: Fix a few phpDoc comments. (#824) * #823: Fix a few phpDoc comments. * #824: Lowercase @inheritdoc . * update - include web storage for ajaxexec - code refactoring * fix modal service * update modal service * fix/DropDown unnecessary property Remove unneccessary property isValueRequired for dropdown formfield and rely on field property required instead. * update ajaexec.plugin add demos/test to gitignore * remove unused comment * update button placement and state * remove jsEvent executor from UserAction Action that required an event must be expicitly set using jsEvent * Apply fixes from StyleCI * add exception handler * Apply fixes from StyleCI * update demos * added jsExecute() * Apply fixes from StyleCI * cleanup * check for exception in each jsSubmit step * Apply fixes from StyleCI * Feature/Refactor On method Allow for on method to receive a Model UserAction as second arguments. * Apply fixes from StyleCI * Table columns support user action now * Apply fixes from StyleCI * forgot the demo * Apply fixes from StyleCI * update - Create new Class jsUserAction based on existing jsCallback - remove jsEvent executor from demos - set demos using new jsUserAction - update View method to use new jsUserAction * Apply fixes from StyleCI * Code review Add comments clean up. * Apply fixes from StyleCI * update comment * test * fix test uri for jsactions.php demo * init * merge changed * Apply fixes from StyleCI * update View::on() Add ability to setup apiConfig for jsCallback. * updated Fix dropdown when place inside a column table. * Apply fixes from StyleCI * fix typo * update method name * improve functionality and demos * Apply fixes from StyleCI * improve demo * Apply fixes from StyleCI * improve demo * improve demo * making crud work * fixes * integrated crud into actions * Apply fixes from StyleCI * Code review Add comments clean up. * Apply fixes from StyleCI * update comment * test * fix test uri for jsactions.php demo * init * merge changed * Apply fixes from StyleCI * update View::on() Add ability to setup apiConfig for jsCallback. * merge * updated Fix dropdown when place inside a column table. * Apply fixes from StyleCI * fix typo * update method name * improve functionality and demos * Apply fixes from StyleCI * improve demo * Apply fixes from StyleCI * improve demo * improve demo * crud improvements * wip * wip * Apply fixes from StyleCI * action test * Apply fixes from StyleCI * test with getting action * Apply fixes from StyleCI * change property name * setup executor from action * Apply fixes from StyleCI * Addesd public property currency_decimals in Persistence/UI * Using property currency_decimals in FormField/Money * Apply fixes from StyleCI * code cleanup * refactor and review * Apply fixes from StyleCI * clean up * add hook callback to crud * Apply fixes from StyleCI * adding native action dropdown support into crud * Apply fixes from StyleCI * update demo to contain example of redefining action executor * Apply fixes from StyleCI * Added two really nice demo pages (index and actions) * Apply fixes from StyleCI * fixed and enhancement - fixed table border - fixed js when table dropdown menu appear near end of window - Delete action should be fixed in atk4\data remove floating css class to table dropdown menu View::On method now check for action confirmation property and apply it by default * fix action in wizrd * add action to menu item * add UserConfirmation * Apply fixes from StyleCI * Add SSE operation with user confirmation example This adds an example for triggering an SSE operation after asking confirmation from the user. * Apply fixes from StyleCI * hide modal content while reloading * refactor make it more generic by applying class to loader instead of moda. * apply sorting when using action * Apply fixes from StyleCI * remove previous test * remove tutorial from actions page Added to a new page tutorial_actions for test to work again * fix double factory * Fix few bugs and add comments (#847) * add some comments while reviewing * fix action->fields bug * cleanup * CRUD refactoring * Apply fixes from StyleCI * change method name * minor fix * notify refactor * more refactoring * Apply fixes from StyleCI * more cleanup * fix comment * more cleanup * Apply fixes from StyleCI * fix actions test * fix lookup test * temp fix for lookup Seem like db value is not available. * Feature/Code Highlight (#849) * Feature/Code Highlight Display code in tutorial using Highlight.js * Apply fixes from StyleCI * add lang selection * fix * nothing * Feature/Card Deck using model action (#846) * init * Apply fixes from StyleCI * fix demo * enhancement add menu bar improve jsNotify setup * Apply fixes from StyleCI * add ability to pass View::on() defaults * add some comments while reviewing * fix action->fields bug * cleanup * CRUD refactoring * Apply fixes from StyleCI * change method name * minor fix * notify refactor * more refactoring * Apply fixes from StyleCI * more cleanup * fix comment * more cleanup * Apply fixes from StyleCI * fix actions test * fix lookup test * temp fix for lookup Seem like db value is not available. * deck refactoring * Apply fixes from StyleCI * update demo * Apply fixes from StyleCI * typo * Apply fixes from StyleCI * enhancement card template refactoring add itemSearch to deck * Apply fixes from StyleCI * add empty view when no record to show * Apply fixes from StyleCI * update * Apply fixes from StyleCI * apply partial reload on card when possible * Apply fixes from StyleCI * remove test argument * Code review * Apply fixes from StyleCI * create view from seed * nothing really * Add Github workflows (actions) (#848) * workflow * Setting current dependencies * wip * wip * wip * wip * wip * wip * wip * wip * fix * Fix unit test on Windows paths * Remove file db.github.php from Demo functional test check. * Apply fixes from StyleCI * Fix some Type Hints * Apply fixes from StyleCI * Feature/input action (#845) * Feature/Input Action * Apply fixes from StyleCI * Change in demo : exit() to $app->callExit() (#854) * Change exit() to $app->callExit() * Change direct exit call to $app->callExit(). * Change all deprecated Persistence_* to correct Persistence\* * badge * fix release bundler * fix release bundler * wip * fix release bundler * fix release bundler * fix release bundler * fix release drafter * release drafter fix * Improvement/include action caption in modal title (#852) * include action caption in modal title * [UPDATE] trim modal title * Apply fixes from StyleCI * DateTime is object and working on same object is replacing both value… (#834) * DateTime is object and working on same object is replacing both values to be same This sets $d1 and $d2 both to "YYYY-mm-dd 23:59:59" ... * Apply fixes from StyleCI * Add Instantiate App using DIContainerTrait (#855) * Cleanup actions * categorizing release drafter * categorizing release drafter * add bot that would ask for documentation * cleanup * fix release bundler * fix release bundler * fix indentation to 2 spaces * fix bundler * Release/2.0.1 backport. (#862) * Releasing 2.0.0 into master (manually) (#859) * Apply fixes from StyleCI * remove extra spaces from Response Content-Type * enhanced only call server when using expression in row. * code review review hasExpression function * First scratch for multiline Documentation * add semantic-ui-vue in atkjs bundle * update webpack configuration * Better draft, formatting and Screenshots follow * Add some formatting * Update Formatting * Add Multiline Screenshots * Fix Link to Screenshot * Add ability to customize CSS of 'content' div * Add Documentation for addContentCss() feature * Added Expressions, onLineChange() * Chapter "Changing appearance" * Improve formatting * update doc * add "Is Not" for TableColumn::FilterModel::TypeString * StyleCI * changed Css to CSS (similarly how we use e.g. renderJS) * add demo * Apply fixes from StyleCI * Add a Scrolling Modal * minor fix change function name. * remove useSuiVue Now include in Bundle * fix/CaughException Layout - When children App is created * Bump eslint-utils from 1.4.0 to 1.4.2 in /js Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.4.0 to 1.4.2. - [Release notes](https://github.com/mysticatea/eslint-utils/releases) - [Commits](mysticatea/eslint-utils@v1.4.0...v1.4.2) Signed-off-by: dependabot[bot] <[email protected]> * Update to changes in Modal.php * add ignore E_DEPRECATED & E_USER_DEPRECATED * add App->catch_error_types to define error types in set_error_handler * fix/#802 Array fields error in form * Apply fixes from StyleCI * Fix #8ß5 * Allow to add Attributes to <input> tag New property added: $this->inputAttr in which additional attributes are stored New function added: setInputAttr() which is a clone of View->setAttr() which fills the $this->inputAttr array Can also be used to overwrite existing attributes as $this->inputAttr is passed as second param to array_merge (at $this->app->getTag()) * update to use inputAttr * update to use inputAttr * update to use inputAttr * update to use inputAttr * style CI fixes * styleCI fixes * Add demo for custom <input> Attributes * add another demo field which uses array definition * Update TypeText.php to pass check * Fix autocomplete.html * Fix lookup.html * Fix autocomplete.pug * Fix lookup.pug * init - add jsCallback when adding or deleting a row. * feature/TreeItemSelector Form Field Initial commit * Apply fixes from StyleCI * Make Escape key clear Grid Search * feature/MultiLine Enhancement - Ability to run js when adding or deleting row. - Add new line of record when tabbing out of the last row/column * Apply fixes from StyleCI * start implementation * Apply fixes from StyleCI * remove test * changed example for ibelar * Apply fixes from StyleCI * some more notes wip * Apply fixes from StyleCI * test * Mutliline: Improve inline docs and comments (#811) * Improve inline docs and comments * Update MultiLine.php * initial testing * Fix #814 - useless code in Form.php (#818) * Fix #814 - useless code in Form.php * Update Form.php * Add Locale class * Apply fixes from StyleCI * add LocaleTest * Apply fixes from StyleCI * Update LocaleTest.php * Add credits to Lokalize services * Create .empty * Delete .empty * Fix Locale.php * refactor * code review and refactor * Apply fixes from StyleCI * updare demo * type hint and cleanup * Apply fixes from StyleCI * js cleanup and comment * add more demo * Typo. * update userAction move loader set function to jsRender so we could apply afterSuccess or jsSuccess after setAction is done. Add jsSuccess and stateContext * Apply fixes from StyleCI * fix * Feature/fix textarea (#822) * fix TextArea and DropDown zero and empty values * Apply fixes from StyleCI * Enhance Form Testing suite * Apply fixes from StyleCI * fix * fix * #823: Fix a few phpDoc comments. (#824) * #823: Fix a few phpDoc comments. * #824: Lowercase @inheritdoc . * update - include web storage for ajaxexec - code refactoring * fix modal service * update modal service * fix/DropDown unnecessary property Remove unneccessary property isValueRequired for dropdown formfield and rely on field property required instead. * update ajaexec.plugin add demos/test to gitignore * remove unused comment * update button placement and state * remove jsEvent executor from UserAction Action that required an event must be expicitly set using jsEvent * Apply fixes from StyleCI * add exception handler * Apply fixes from StyleCI * update demos * added jsExecute() * Apply fixes from StyleCI * cleanup * check for exception in each jsSubmit step * Apply fixes from StyleCI * Feature/Refactor On method Allow for on method to receive a Model UserAction as second arguments. * Apply fixes from StyleCI * Table columns support user action now * Apply fixes from StyleCI * forgot the demo * Apply fixes from StyleCI * update - Create new Class jsUserAction based on existing jsCallback - remove jsEvent executor from demos - set demos using new jsUserAction - update View method to use new jsUserAction * Apply fixes from StyleCI * Code review Add comments clean up. * Apply fixes from StyleCI * update comment * test * fix test uri for jsactions.php demo * init * merge changed * Apply fixes from StyleCI * update View::on() Add ability to setup apiConfig for jsCallback. * updated Fix dropdown when place inside a column table. * Apply fixes from StyleCI * fix typo * update method name * improve functionality and demos * Apply fixes from StyleCI * improve demo * Apply fixes from StyleCI * improve demo * improve demo * making crud work * fixes * integrated crud into actions * Apply fixes from StyleCI * Code review Add comments clean up. * Apply fixes from StyleCI * update comment * test * fix test uri for jsactions.php demo * init * merge changed * Apply fixes from StyleCI * update View::on() Add ability to setup apiConfig for jsCallback. * merge * updated Fix dropdown when place inside a column table. * Apply fixes from StyleCI * fix typo * update method name * improve functionality and demos * Apply fixes from StyleCI * improve demo * Apply fixes from StyleCI * improve demo * improve demo * crud improvements * wip * wip * Apply fixes from StyleCI * action test * Apply fixes from StyleCI * test with getting action * Apply fixes from StyleCI * change property name * setup executor from action * Apply fixes from StyleCI * Addesd public property currency_decimals in Persistence/UI * Using property currency_decimals in FormField/Money * Apply fixes from StyleCI * code cleanup * refactor and review * Apply fixes from StyleCI * clean up * add hook callback to crud * Apply fixes from StyleCI * adding native action dropdown support into crud * Apply fixes from StyleCI * update demo to contain example of redefining action executor * Apply fixes from StyleCI * Added two really nice demo pages (index and actions) * Apply fixes from StyleCI * fixed and enhancement - fixed table border - fixed js when table dropdown menu appear near end of window - Delete action should be fixed in atk4\data remove floating css class to table dropdown menu View::On method now check for action confirmation property and apply it by default * fix action in wizrd * add action to menu item * add UserConfirmation * Apply fixes from StyleCI * Add SSE operation with user confirmation example This adds an example for triggering an SSE operation after asking confirmation from the user. * Apply fixes from StyleCI * hide modal content while reloading * refactor make it more generic by applying class to loader instead of moda. * apply sorting when using action * Apply fixes from StyleCI * remove previous test * remove tutorial from actions page Added to a new page tutorial_actions for test to work again * fix double factory * Fix few bugs and add comments (#847) * add some comments while reviewing * fix action->fields bug * cleanup * CRUD refactoring * Apply fixes from StyleCI * change method name * minor fix * notify refactor * more refactoring * Apply fixes from StyleCI * more cleanup * fix comment * more cleanup * Apply fixes from StyleCI * fix actions test * fix lookup test * temp fix for lookup Seem like db value is not available. * Feature/Code Highlight (#849) * Feature/Code Highlight Display code in tutorial using Highlight.js * Apply fixes from StyleCI * add lang selection * fix * nothing * Feature/Card Deck using model action (#846) * init * Apply fixes from StyleCI * fix demo * enhancement add menu bar improve jsNotify setup * Apply fixes from StyleCI * add ability to pass View::on() defaults * add some comments while reviewing * fix action->fields bug * cleanup * CRUD refactoring * Apply fixes from StyleCI * change method name * minor fix * notify refactor * more refactoring * Apply fixes from StyleCI * more cleanup * fix comment * more cleanup * Apply fixes from StyleCI * fix actions test * fix lookup test * temp fix for lookup Seem like db value is not available. * deck refactoring * Apply fixes from StyleCI * update demo * Apply fixes from StyleCI * typo * Apply fixes from StyleCI * enhancement card template refactoring add itemSearch to deck * Apply fixes from StyleCI * add empty view when no record to show * Apply fixes from StyleCI * update * Apply fixes from StyleCI * apply partial reload on card when possible * Apply fixes from StyleCI * remove test argument * Code review * Apply fixes from StyleCI * create view from seed * nothing really * Add Github workflows (actions) (#848) * workflow * Setting current dependencies * wip * wip * wip * wip * wip * wip * wip * wip * fix * Fix unit test on Windows paths * Remove file db.github.php from Demo functional test check. * Apply fixes from StyleCI * Fix some Type Hints * Apply fixes from StyleCI * Feature/input action (#845) * Feature/Input Action * Apply fixes from StyleCI * Change in demo : exit() to $app->callExit() (#854) * Change exit() to $app->callExit() * Change direct exit call to $app->callExit(). * Change all deprecated Persistence_* to correct Persistence\* * badge * fix release bundler * fix release bundler * wip * fix release bundler * fix release bundler * fix release bundler * Setting current dependencies * Setting current dependencies * fix release bundler * fix release bundler * fix release bundler * fix release bundler * wip * Updating CDN link to use @2.0.2 (#864) * Update versions for develop * Update App.php * Update App.php * wip * wip * Update versions for develop (#866) * Feature/enable setting custom exec button for an action (#853) * enable setting custom exec button for an action * use seed instead of object * Apply fixes from StyleCI * Added namespaces to quickstart and file structure example (#857) * Added namespaces to quickstart and file structure example I adapted and enhanced the things that have been missing for myself when I started using atk. So I first had to dig into namespaces and second I had to experiment with the file structure until I came up with one that is suited for small and big projects and offers a good overview and structure. * Updated filestructure and adapted to PSR-4 namespace conventions I did some adaptions of the namespacing as it wasn't fully PSR-4 conform. In addition some changes to the file structure. Vendor is now outside of the public folder. * develop should require develop * use getFields() instead of elements property (#876) * use getFields() * Apply fixes from StyleCI * nicer * Apply fixes from StyleCI * move jsInput, add jsChecked (#879) * move jsInput, add jsChecked * Apply fixes from StyleCI * Fix/UserAction in VirtualPage and Tabs (#880) * testing * use minified * more testing * testing 33 * fix getmodal * finall * Apply fixes from StyleCI * remove test * remove comment * Apply fixes from StyleCI * fix typo * fix comment * fix unit test UsertAction modal executor is now add into $app->html view instead of layout. * fix version number * Use new view method for rendering js action * back to min js version * Update versions for develop * Setting current dependencies and complied JS Co-authored-by: Romans Malinovskis <[email protected]> Co-authored-by: PhilippGrashoff <[email protected]> Co-authored-by: Francesco Danti <[email protected]> Co-authored-by: Alain Belair <[email protected]> Co-authored-by: karakal <[email protected]> Co-authored-by: Alex Cicovic <[email protected]> Co-authored-by: Jarkko Linnanvirta <[email protected]> Co-authored-by: Thomas Stokkeland <[email protected]> Co-authored-by: Imants Horsts <[email protected]> Co-authored-by: Georgi Hristov <[email protected]> Co-authored-by: Gowrav Vishwakarma <[email protected]> Co-authored-by: bedengler <[email protected]> Co-authored-by: GitHub Web Flow <[email protected]>
1 parent 3a83bba commit a59a910

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+681
-289
lines changed

.github/workflows/bundler.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ jobs:
4444
pr_assignee: "romaninsh"
4545
github_token: ${{ secrets.GITHUB_TOKEN }}
4646

47-
48-
49-
5047
- name: Update to stable dependencies
5148
run: |
5249
jq 'del(."minimum-stability")|del(.require["atk4/data"])' < composer.json > tmp && mv tmp composer.json

demos/card-action.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
$client = $stats->ref('client_country_iso')->loadAny();
2525
$notify = $client->addAction('Notify',
2626
['args' => [
27-
'note'=> ['type'=>'string', 'required'=>true],
27+
'note'=> ['type'=>'string', 'required'=>true],
2828
],
29-
'callback' => function ($m) {
30-
return 'Note to client is sent.';
31-
},
32-
]);
29+
'callback' => function ($m) {
30+
return 'Note to client is sent.';
31+
},
32+
]);
3333

3434
$c->addSection('Client Country:', $client, ['iso', 'numcode', 'phonecode'], true);
3535

demos/card-deck.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
});
1616

1717
$action = $countries->addAction('book', [
18-
'callback' => function ($m, $city, $email) {
18+
'callback' => function ($m, $email, $city) {
1919
return 'Your request to visit '.ucwords($city).' in '.$m->get('name').' was sent to: '.$email;
2020
},
2121
'ui' => ['button'=>[null, 'icon'=>'plane']],
@@ -33,7 +33,7 @@
3333
},
3434
'scope' => 'none',
3535
'ui' => ['button' => ['Request Info', 'ui' => 'button primary', 'icon' => 'mail']],
36-
]);
36+
]);
3737

3838
$info_action->args = [
3939
'email' => ['type'=>'email', 'required'=>true, 'caption' => 'Please let us know your email address:'],

demos/database.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
}
1010
} catch (PDOException $e) {
1111
throw new \atk4\ui\Exception([
12-
'This demo requires access to the database. See "demos/database.php"',
13-
], null, $e);
12+
'This demo requires access to the database. See "demos/database.php"',
13+
], null, $e);
1414
}
1515

1616
$app->db = $db;
@@ -159,10 +159,10 @@ public function importFromFilesystem($path)
159159
$this->unload();
160160

161161
$this->save([
162-
'name' => $fileinfo->getFilename(),
163-
'is_folder' => $fileinfo->isDir(),
164-
'type' => pathinfo($fileinfo->getFilename(), PATHINFO_EXTENSION),
165-
]);
162+
'name' => $fileinfo->getFilename(),
163+
'is_folder' => $fileinfo->isDir(),
164+
'type' => pathinfo($fileinfo->getFilename(), PATHINFO_EXTENSION),
165+
]);
166166

167167
if ($fileinfo->isDir()) {
168168
$this->ref('SubFolder')->importFromFilesystem($path.'/'.$fileinfo->getFilename());

demos/dropdown-plus.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
'model' => new Country($db),
2020
'renderRowFunction' => function ($row) {
2121
return [
22-
'value' => $row->id,
23-
'title' => $row->getTitle().' ('.$row->get('iso3').')',
22+
'value' => $row->id,
23+
'title' => $row->getTitle().' ('.$row->get('iso3').')',
2424
];
2525
},
2626
]);
@@ -32,9 +32,9 @@
3232
'model' => new File($db),
3333
'renderRowFunction' => function ($row) {
3434
return [
35-
'value' => $row->id,
36-
'title' => $row->getTitle(),
37-
'icon' => $row->get('is_folder') ? 'folder' : 'file',
35+
'value' => $row->id,
36+
'title' => $row->getTitle(),
37+
'icon' => $row->get('is_folder') ? 'folder' : 'file',
3838
];
3939
},
4040
]);

demos/field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
])]));
8181

8282
$app->add(new \atk4\ui\FormField\Line(['action' => new \atk4\ui\Button([
83-
'icon' => 'search',
83+
'icon' => 'search',
8484
])]));
8585

8686
$app->add(new \atk4\ui\Header(['Modifiers', 'size' => 2]));

demos/field2.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727

2828
$g = $f->addGroup('DropDown');
2929
$values = [
30-
'tag' => ['Tag', 'icon' => 'tag icon'],
31-
'globe' => ['Globe', 'icon' => 'globe icon'],
32-
'registered' => ['Registered', 'icon' => 'registered icon'],
33-
'file' => ['File', 'icon' => 'file icon'],
34-
];
30+
'tag' => ['Tag', 'icon' => 'tag icon'],
31+
'globe' => ['Globe', 'icon' => 'globe icon'],
32+
'registered' => ['Registered', 'icon' => 'registered icon'],
33+
'file' => ['File', 'icon' => 'file icon'],
34+
];
3535
$g->addField('d_norm', [new \atk4\ui\FormField\DropDown(['values' => $values]), 'width'=>'three'])->set('globe');
3636
$g->addField('d_read', [new \atk4\ui\FormField\DropDown(['values' => $values]), 'readonly' => true, 'width'=>'three'])->set('globe'); // allows to change value
3737
$g->addField('d_disb', [new \atk4\ui\FormField\DropDown(['values' => $values]), 'disabled' => true, 'width'=>'three'])->set('globe'); // css disabled, but can focus with Tab and change value
@@ -172,21 +172,21 @@
172172

173173
$g = $form->addGroup('DropDown');
174174
$d1 = $g->addField('d1', new \atk4\ui\FormField\DropDown(['values' => [
175-
'tag' => ['Tag', 'icon' => 'tag icon'],
176-
'globe' => ['Globe', 'icon' => 'globe icon'],
177-
'registered' => ['Registered', 'icon' => 'registered icon'],
178-
'file' => ['File', 'icon' => 'file icon'],
179-
],
175+
'tag' => ['Tag', 'icon' => 'tag icon'],
176+
'globe' => ['Globe', 'icon' => 'globe icon'],
177+
'registered' => ['Registered', 'icon' => 'registered icon'],
178+
'file' => ['File', 'icon' => 'file icon'],
179+
],
180180
]));
181181
$d1->onChange('console.log("d1 changed")');
182182

183183
$g = $form->addGroup('Radio');
184184
$r1 = $g->addField('r1', new \atk4\ui\FormField\Radio(['values' => [
185-
'Tag',
186-
'Globe',
187-
'Registered',
188-
'File',
189-
],
185+
'Tag',
186+
'Globe',
187+
'Registered',
188+
'File',
189+
],
190190
]));
191191
$r1->onChange('console.log("r1 changed")');
192192

demos/form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
$f->onSubmit(function ($f) {
198198
$errors = [];
199199

200-
foreach ($f->model->elements as $name => $ff) {
200+
foreach ($f->model->getFields() as $name => $ff) {
201201
if ($name == 'id') {
202202
continue;
203203
}

demos/grid_action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
$g->table->jsRemoveRow($model->get('id')),
3333
];
3434
},
35-
]
35+
]
3636
);
3737

3838
$del_action = $country->addAction('delete', [

demos/jsactionsgrid.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@
8383
$g->addActionMenuItem($model_header);
8484
$g->addActionMenuItems(
8585
[
86-
'callback',
87-
'preview',
88-
'disabled_action',
89-
'edit_argument',
90-
'edit_argument_prev',
91-
'edit_iso',
92-
'Ouch',
93-
'confirm',
94-
]
86+
'callback',
87+
'preview',
88+
'disabled_action',
89+
'edit_argument',
90+
'edit_argument_prev',
91+
'edit_iso',
92+
'Ouch',
93+
'confirm',
94+
]
9595
);
9696

9797
$special_item = $app->factory('View', ['id' => false, 'class' => ['item'], 'content' => 'Multi Step'], 'atk4\ui');

0 commit comments

Comments
 (0)