mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-06-16 01:31:39 +02:00
Merge pull request #269 from creative-commoners/pulls/3/doc
DOC Update readme example
This commit is contained in:
commit
be3100d249
|
@ -121,7 +121,7 @@ $field = StringTagField::create(
|
||||||
'Tags',
|
'Tags',
|
||||||
'Tags',
|
'Tags',
|
||||||
['one', 'two'],
|
['one', 'two'],
|
||||||
explode(',', $this->Tags)
|
explode(',', $this->Tags ?: '')
|
||||||
);
|
);
|
||||||
|
|
||||||
$field->setShouldLazyLoad(true); // tags should be lazy loaded
|
$field->setShouldLazyLoad(true); // tags should be lazy loaded
|
||||||
|
|
Loading…
Reference in New Issue
Block a user