Picture of fergus beake
How to get settings from Properties.Schema?
by fergus beake - Friday, 30 June 2017, 11:17 AM
 

Hi, 

I'm currently making some changes to a extension and I need to add a boolean variable (foo) from properties.schema.

I've managed to get the authoring tool to work, but I'm struggling to find anything about how this ends up as a variable in a JavaScript file.

Is there any tutorials anywhere on how this works? if not how would I manage to get this to work?

thanks.

Picture of fergus beake
Re: How to get settings from Properties.Schema?
by fergus beake - Friday, 30 June 2017, 11:49 AM
 

Nevermind, I managed to resolve this one myself

For future reference, using ' this.model.get("foo") ' will return the variable.

 

Picture of Chuck Lorenz
Re: How to get settings from Properties.Schema?
by Chuck Lorenz - Friday, 30 June 2017, 12:13 PM
 

Also for future reference and for future readers, 
framework wiki: https://github.com/adaptlearning/adapt_framework/wiki
authoring tool wiki: https://github.com/adaptlearning/adapt_authoring/wiki
properties schema: https://github.com/adaptlearning/adapt_authoring/wiki/Properties-Schema

The framework is the authoring tool's engine, so a developer addressing some technical issues in the authoring tool will benefit from some knowledge of the framework.