mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
add docs for https://github.com/owncloud/core/pull/10964
This commit is contained in:
@@ -9,15 +9,24 @@ The CSS files reside in the **css/** folder and should be included in the templa
|
||||
.. code-block:: php
|
||||
|
||||
<?php
|
||||
// include one file
|
||||
style('myapp', 'style'); // adds js/style.css
|
||||
|
||||
// include multiple files for the same app
|
||||
style('myapp', array('style', 'navigation')); // adds js/style.css, js/navigation.css
|
||||
|
||||
Web Components go into the **component/** folder and can be imported like this:
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
<?php
|
||||
// include one file
|
||||
component('myapp', 'tabs'); // adds component/tabs.html
|
||||
|
||||
// include multiple files for the same app
|
||||
component('myapp', array('tabs', 'forms')); // adds component/tabs.html, component/forms.html
|
||||
|
||||
|
||||
.. note:: Keep in mind that Web Components are still very new and you `might need to add polyfills using Polymer <http://www.polymer-project.org/resources/compatibility.html>`_
|
||||
|
||||
Standard layout
|
||||
|
||||
@@ -9,8 +9,12 @@ The JavaScript files reside in the **js/** folder and should be included in the
|
||||
.. code-block:: php
|
||||
|
||||
<?php
|
||||
// add one file
|
||||
script('myapp', 'script'); // adds js/script.js
|
||||
|
||||
// add multiple files in the same app
|
||||
script('myapp', array('script', 'navigation')); // adds js/script.js js/navigation.js
|
||||
|
||||
The recommended JavaScript framework to use is `AngularJS <https://angularjs.org/#>`_. A nice tutorial screencast collection can be found on `Egghead.io <https://egghead.io/technologies/angularjs>`_
|
||||
|
||||
Sending the CSRF token
|
||||
|
||||
Reference in New Issue
Block a user