Skip to content

Commit

Permalink
update table input js
Browse files Browse the repository at this point in the history
  • Loading branch information
iwillhappy1314 committed Jan 12, 2021
1 parent 2a3c4e3 commit a2567a8
Show file tree
Hide file tree
Showing 34 changed files with 80 additions and 62 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ $confirm = Html::el('span')->setHtml('I agree the <a href="#">Terms of service.<
$form->addCheckbox('confirm', $confirm)->setOption('description', $confirm);
```

### Set Datastore

```php
$form->setDatastore(new \Wenprise\Forms\Datastores\PostMetaDatastore(1, $form));

$form->save();
```

## Fields

### nonce field
Expand Down
2 changes: 1 addition & 1 deletion frontend/assets/scripts/modules/table-input.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/dist/app/autocomplete-6d088d6a.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/chosen-66ec8cd1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/chosen-a566e291.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/combodate-72081aec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/datepicker-8e4885cc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/datepicker-d5892d69.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/datepicker_zh-9fbb4fe5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/daterangepicker-18fcc6ce.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/daterangepicker-b593495c.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/image_picker-1d5c2a46.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/main-3b413d99.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/main-7c2af4b2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions frontend/dist/app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"star_rating.js.map": "app/star_rating-ecbbf21b.js.map",
"sweetalert.js": "app/sweetalert-6042f47f.js",
"sweetalert.js.map": "app/sweetalert-6042f47f.js.map",
"tableinput.js": "app/tableinput-d2376e97.js",
"tableinput.js.map": "app/tableinput-d2376e97.js.map",
"tableinput.js": "app/tableinput-cd1d5da8.js",
"tableinput.js.map": "app/tableinput-cd1d5da8.js.map",
"uploader.css": "app/uploader-ed05a3f5.css",
"uploader.css.map": "app/uploader-ed05a3f5.css.map",
"uploader.js": "app/uploader-046dc6a1.js",
Expand All @@ -67,11 +67,11 @@
"tableinput": {
"js": [
"app/runtime-b9921ffa.js",
"app/tableinput-d2376e97.js"
"app/tableinput-cd1d5da8.js"
],
"js.map": [
"app/runtime-b9921ffa.js.map",
"app/tableinput-d2376e97.js.map"
"app/tableinput-cd1d5da8.js.map"
]
},
"rangeslider": {
Expand Down
2 changes: 1 addition & 1 deletion frontend/dist/app/moment-0bb8ad6a.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/rangeslider-6d02f2a8.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/rangeslider-c71d1b60.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/runtime-b9921ffa.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/signature-b2e25db6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/star_rating-363ea0db.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/star_rating-ecbbf21b.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/sweetalert-6042f47f.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions frontend/dist/app/tableinput-cd1d5da8.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/dist/app/tableinput-cd1d5da8.js.map

Large diffs are not rendered by default.

28 changes: 0 additions & 28 deletions frontend/dist/app/tableinput-d2376e97.js

This file was deleted.

1 change: 0 additions & 1 deletion frontend/dist/app/tableinput-d2376e97.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/dist/app/uploader-046dc6a1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/dist/app/uploader-ed05a3f5.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions src/Controls/TableInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,21 @@ public function getControl()
'element' => $name,
'caption' => '',
'uiFramework' => 'bootstrap4',
'iconFramework' => 'bootstrapicons',
'iconParams' => [
'baseUrl' => "https://cdn.jsdelivr.net/npm/bootstrap-icons/icons/",
'icons' => [
'append' => 'plus',
'insert' => 'plus',
'remove' => 'dash',
'removeLast' => 'dash',
],
],
'initRows' => '',
'rowDragging' => '',
'hideRowNumColumn' => '',
'hideButtons' => [
'insert' => true,
// 'insert' => true,
'moveUp' => true,
'moveDown' => true,
],
Expand All @@ -93,7 +103,7 @@ public function getControl()
'table' => "rs-table",
'buttonGroup' => "rs-btn-group",
'control' => "rs-form-control",
'append' => "rs-btn rs-btn-primary",
'append' => "rs-btn rs-btn-default",
'remove' => "rs-btn rs-btn-default",
'removeLast' => "rs-btn rs-btn-default",
],
Expand Down
2 changes: 1 addition & 1 deletion src/Datastores/OptionsDatastore.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class OptionsDatastore extends \Wenprise\Forms\Datastores\IDatastore
{
var int $post_id = 0;
var $post_id = 0;

public function __construct($form)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Datastores/PostMetaDatastore.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class PostMetaDatastore extends \Wenprise\Forms\Datastores\IDatastore
{
var int $post_id = 0;
var $post_id = 0;

public function __construct($post_id, $form)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Datastores/TermMetaDatastore.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class TermMetaDatastore extends \Wenprise\Forms\Datastores\IDatastore
{
var int $term_id = 0;
var $term_id = 0;

public function __construct($term_id, $form)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Datastores/UserMetaDatastore.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class UserMetaDatastore extends \Wenprise\Forms\Datastores\IDatastore
{
var int $user_id = 0;
var $user_id = 0;

public function __construct($user_id, $form)
{
Expand Down

0 comments on commit a2567a8

Please sign in to comment.