Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
f6b53601
Unverified
Commit
f6b53601
authored
Feb 14, 2018
by
yann300
Committed by
GitHub
Feb 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update best-practices.md
parent
b099d5f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
best-practices.md
best-practices.md
+10
-0
No files found.
best-practices.md
View file @
f6b53601
...
@@ -2,6 +2,16 @@
...
@@ -2,6 +2,16 @@
-
`ES6 class`
rather than ES5 to create class.
-
`ES6 class`
rather than ES5 to create class.
-
CSS declaration using
`csjs-inject`
.
-
CSS declaration using
`csjs-inject`
.
-
CSS files:
**if**
the CSS section of an UI component is too important, CSS declarations should be put in a different file and in a different folder.
The folder should be named
`styles`
and the file should be named with the extension
`-styles.css`
.
e.g:
`file-explorer.js`
being an UI component
`file-explorer-styles.css`
is created in the
`styles`
folder right under
`file-explorer.js`
**if**
the CSS section of an UI component is rather limited it is preferable to put it in the corresponding JS file.
-
HTML declaration using
`yo-yo`
.
-
HTML declaration using
`yo-yo`
.
-
`opt`
is an input parameter, it contains the
`api`
and
`event`
object.
-
`opt`
is an input parameter, it contains the
`api`
and
`event`
object.
-
`self._api = opts.api`
`opts.api`
is an object which contains functions/features that the module needs.
-
`self._api = opts.api`
`opts.api`
is an object which contains functions/features that the module needs.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment