new Faq(items) → {Object}
FAQ - Faq Class
Parameters:
Name | Type | Description |
---|---|---|
items |
Array | The array describing all items. Each item is an object with properties:
|
- Source:
- mathex/res-otto/js/mathex.js, line 1458
Returns:
mathex.Faq instance
- Type
- Object
Example
var faq = new mathex.Faq([
{
question: "Which color is yellow?",
answer: 'yellow!',
audio: {
mp3: 'audio/myfile.mp3',
ogg: 'audio/myfile.ogg',
}
},
{
question: "How much it is {% 1 + 1 %}?",
answer: "<p>TWO!</p>"
}
]);