Browse Source
Merge pull request #2969 from Nikesh-hub/patch-1
Update Traits.md
pull/2997/head
Artur Arseniev
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/modules/Traits.md
|
|
@ -299,7 +299,7 @@ editor.TraitManager.addType('href-next', { |
|
|
createInput({ trait }) { |
|
|
createInput({ trait }) { |
|
|
// Here we can decide to use properties from the trait |
|
|
// Here we can decide to use properties from the trait |
|
|
const traitOpts = trait.get('options') || []; |
|
|
const traitOpts = trait.get('options') || []; |
|
|
const options = traitOpts.lenght ? traitOpts : [ |
|
|
const options = traitOpts.length ? traitOpts : [ |
|
|
{ id: 'url', name: 'URL' }, |
|
|
{ id: 'url', name: 'URL' }, |
|
|
{ id: 'email', name: 'Email' }, |
|
|
{ id: 'email', name: 'Email' }, |
|
|
]; |
|
|
]; |
|
|
|