AppSuite:Debugging the UI: Difference between revisions

From Open-Xchange
Line 15: Line 15:
</pre>
</pre>


== Enable capability via URL hash ==
== Enable/disable capability via URL hash ==
Just add the parameter "cap" to URL hash. A leading minus disables a capability. Multiple capabilities separated by comma. Example:
Just add the parameter "cap" to URL hash. A leading minus disables a capability. Multiple capabilities separated by comma. Example:
<pre language="none">  
<pre language="none">  

Revision as of 10:01, 29 August 2013

Debugging the UI

Synopsis: A collection of hints to debug during UI development

What capabilities are available?

 
_(ox.serverConfig.capabilities).pluck("id").sort();

Check settings

 
// check core settings
require('settings!io.ox/core').get();
// check mail settings
require('settings!io.ox/mail').get();

Enable/disable capability via URL hash

Just add the parameter "cap" to URL hash. A leading minus disables a capability. Multiple capabilities separated by comma. Example:

 
...&cap=emoji,-calendar