{"classData":[{"comment":"/**\n * @class Neo.component.Carousel\n * @extends Neo.component.Base\n */","meta":{"filename":"Carousel.mjs","lineno":7,"columnno":0,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"kind":"class","name":"Carousel","augments":["Neo.component.Base"],"memberof":"Neo.component","longname":"Neo.component.Carousel","scope":"static","$longname":"Neo.component.Carousel","$kind":"class","id":777,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * Defines the currently visible item in the middle\n     * This gets updated everytime a button is clicked to reflect the current order\n     * @member {Number} itemIndex=1\n     */","meta":{"filename":"Carousel.mjs","lineno":17,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"description":"Defines the currently visible item in the middle<br />This gets updated everytime a button is clicked to reflect the current order","kind":"member","name":"itemIndex","type":{"names":["Number"]},"defaultvalue":1,"longname":"itemIndex","scope":"global","$longname":"itemIndex","$kind":"property","id":778,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * Defines the order of the item in the carousel\n     * This gets updated everytime a button is clicked to reflect the current order\n     * @member {String[]} positionArray\n     */","meta":{"filename":"Carousel.mjs","lineno":23,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"description":"Defines the order of the item in the carousel<br />This gets updated everytime a button is clicked to reflect the current order","kind":"member","name":"positionArray","type":{"names":["Array.<String>"]},"longname":"positionArray","scope":"global","$longname":"positionArray","$kind":"property","id":779,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n         * @member {String} className='Neo.component.Carousel'\n         * @protected\n         */","meta":{"filename":"Carousel.mjs","lineno":30,"columnno":8,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"kind":"member","name":"className","type":{"names":["String"]},"defaultvalue":"'Neo.component.Carousel'","access":"protected","longname":"className","scope":"global","$longname":"className","$kind":"property","id":780,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n         * @member {String} ntype='carousel'\n         * @protected\n         */","meta":{"filename":"Carousel.mjs","lineno":35,"columnno":8,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"kind":"member","name":"ntype","type":{"names":["String"]},"defaultvalue":"'carousel'","access":"protected","longname":"ntype","scope":"global","$longname":"ntype","$kind":"property","id":781,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n         * autoRun allows to run through the all items timebased\n         * 0 means it is turned off. Other values are the timer in ms,\n         * which will hide the arrows.\n         *\n         * @member {int} autoRun=0\n         */","meta":{"filename":"Carousel.mjs","lineno":43,"columnno":8,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"description":"autoRun allows to run through the all items timebased<br />0 means it is turned off. Other values are the timer in ms,<br />which will hide the arrows.","kind":"member","name":"autoRun","type":{"names":["int"]},"defaultvalue":0,"longname":"autoRun","scope":"global","$longname":"autoRun","$kind":"property","id":782,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n         * @member {String[]} cls=['neo-carousel']\n         */","meta":{"filename":"Carousel.mjs","lineno":47,"columnno":8,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"kind":"member","name":"cls","type":{"names":["Array.<String>"]},"defaultvalue":"['neo-carousel']","longname":"cls","scope":"global","$longname":"cls","$kind":"property","id":783,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n         * Custom cls added to each item\n         * This is only a single string\n         *\n         * @member {String|null} itemCls=null\n         */","meta":{"filename":"Carousel.mjs","lineno":54,"columnno":8,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"description":"Custom cls added to each item<br />This is only a single string","kind":"member","name":"itemCls","type":{"names":["String","null"]},"defaultvalue":null,"longname":"itemCls","scope":"global","$longname":"itemCls","$kind":"property","id":784,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n         * Template for each item\n         * The format is the same as for literals,\n         * but it is a string instead of surrounding \"`\"\n         * @member {String|null} tpl=null\n         * @example\n         *     record = {foo: ... , bar: ...}\n         *     \"[{cls: 'css-foo-class', html: '${foo}'}, {html: '${baa}'}]\"\n         */","meta":{"filename":"Carousel.mjs","lineno":64,"columnno":8,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"description":"Template for each item<br />The format is the same as for literals,<br />but it is a string instead of surrounding \"`\"","kind":"member","name":"tpl","type":{"names":["String","null"]},"defaultvalue":null,"examples":["record = {foo: ... , bar: ...}\n    \"[{cls: 'css-foo-class', html: '${foo}'}, {html: '${baa}'}]\""],"longname":"tpl","scope":"global","$longname":"tpl","$kind":"property","id":785,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n         * Store to be used.\n         *\n         * @member {Neo.data.Store|null} store=null\n         */","meta":{"filename":"Carousel.mjs","lineno":70,"columnno":8,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"description":"Store to be used.","kind":"member","name":"store","type":{"names":["Neo.data.Store","null"]},"defaultvalue":null,"longname":"store","scope":"global","$longname":"store","$kind":"property","id":786,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n         * @member {Object} _vdom\n         */","meta":{"filename":"Carousel.mjs","lineno":74,"columnno":8,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{}},"kind":"member","name":"_vdom","type":{"names":["Object"]},"longname":"_vdom","scope":"global","$longname":"_vdom","$kind":"property","id":787,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * @param {Object} config\n     */","meta":{"range":[2781,3191],"filename":"Carousel.mjs","lineno":89,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{"id":"astnode100027026","name":"Carousel#construct","type":"MethodDefinition","paramnames":["config"]},"vars":{"":null}},"params":[{"type":{"names":["Object"]},"name":"config"}],"name":"construct","longname":"Carousel#construct","kind":"function","memberof":"Carousel","scope":"instance","$longname":"Carousel#construct","$kind":"method","id":788,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * Triggered after autoRun config got changed\n     * @param {boolean|integer} value\n     * @protected\n     */","meta":{"range":[3319,3702],"filename":"Carousel.mjs","lineno":113,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{"id":"astnode100027073","name":"Carousel#afterSetAutoRun","type":"MethodDefinition","paramnames":["value","oldValue"]},"vars":{"":null}},"description":"Triggered after autoRun config got changed","params":[{"type":{"names":["boolean","integer"]},"name":"value"}],"access":"protected","name":"afterSetAutoRun","longname":"Carousel#afterSetAutoRun","kind":"function","memberof":"Carousel","scope":"instance","$longname":"Carousel#afterSetAutoRun","$kind":"method","id":789,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * Triggered after the store config got changed\n     * @param {Neo.data.Store|Object|null} value\n     * @param {Neo.data.Store|null} oldValue\n     * @protected\n     */","meta":{"range":[3888,4090],"filename":"Carousel.mjs","lineno":138,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{"id":"astnode100027134","name":"Carousel#afterSetStore","type":"MethodDefinition","paramnames":["value","oldValue"]},"vars":{"":null}},"description":"Triggered after the store config got changed","params":[{"type":{"names":["Neo.data.Store","Object","null"]},"name":"value"},{"type":{"names":["Neo.data.Store","null"]},"name":"oldValue"}],"access":"protected","name":"afterSetStore","longname":"Carousel#afterSetStore","kind":"function","memberof":"Carousel","scope":"instance","$longname":"Carousel#afterSetStore","$kind":"method","id":790,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * Ensure the itemTpl is setup correctly to match a valid JSON\n     * @param {String} value\n     * @returns {String}\n     * @protected\n     */","meta":{"range":[4251,4522],"filename":"Carousel.mjs","lineno":155,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{"id":"astnode100027155","name":"Carousel#beforeSetItemTpl","type":"MethodDefinition","paramnames":["value"]},"vars":{"":null}},"description":"Ensure the itemTpl is setup correctly to match a valid JSON","params":[{"type":{"names":["String"]},"name":"value"}],"returns":[{"type":{"names":["String"]}}],"access":"protected","name":"beforeSetItemTpl","longname":"Carousel#beforeSetItemTpl","kind":"function","memberof":"Carousel","scope":"instance","$longname":"Carousel#beforeSetItemTpl","$kind":"method","id":791,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * Triggered before the store config gets changed.\n     * @param {Neo.data.Store|Object|null} value\n     * @param {Neo.data.Store|null} oldValue\n     * @returns {Neo.data.Store}\n     * @protected\n     */","meta":{"range":[4744,4876],"filename":"Carousel.mjs","lineno":172,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{"id":"astnode100027196","name":"Carousel#beforeSetStore","type":"MethodDefinition","paramnames":["value","oldValue"]},"vars":{"":null}},"description":"Triggered before the store config gets changed.","params":[{"type":{"names":["Neo.data.Store","Object","null"]},"name":"value"},{"type":{"names":["Neo.data.Store","null"]},"name":"oldValue"}],"returns":[{"type":{"names":["Neo.data.Store"]}}],"access":"protected","name":"beforeSetStore","longname":"Carousel#beforeSetStore","kind":"function","memberof":"Carousel","scope":"instance","$longname":"Carousel#beforeSetStore","$kind":"method","id":792,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * Create the initial three items and add them to the vdom\n     */","meta":{"range":[4961,5283],"filename":"Carousel.mjs","lineno":180,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{"id":"astnode100027211","name":"Carousel#createBaseItems","type":"MethodDefinition","paramnames":[]},"vars":{"":null}},"description":"Create the initial three items and add them to the vdom","name":"createBaseItems","longname":"Carousel#createBaseItems","kind":"function","memberof":"Carousel","scope":"instance","params":[],"$longname":"Carousel#createBaseItems","$kind":"method","id":793,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * Everytime we rotate we create items\n     * @param {Number} recordIndex   - index inside store\n     * @param {Number} positionIndex - based on positionArray\n     * @returns {Object}\n     */","meta":{"range":[5493,6036],"filename":"Carousel.mjs","lineno":201,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{"id":"astnode100027268","name":"Carousel#createItem","type":"MethodDefinition","paramnames":["recordIndex","positionIndex"]},"vars":{"":null}},"description":"Everytime we rotate we create items","params":[{"type":{"names":["Number"]},"description":"index inside store","name":"recordIndex"},{"type":{"names":["Number"]},"description":"based on positionArray","name":"positionIndex"}],"returns":[{"type":{"names":["Object"]}}],"name":"createItem","longname":"Carousel#createItem","kind":"function","memberof":"Carousel","scope":"instance","$longname":"Carousel#createItem","$kind":"method","id":794,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * Rotate the three items and fill in a new record\n     * @param {Object} event\n     * @param {Object} event.target - clicked button\n     */","meta":{"range":[6195,7831],"filename":"Carousel.mjs","lineno":225,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{"id":"astnode100027336","name":"Carousel#onCarouselBtnClick","type":"MethodDefinition","paramnames":["event"]},"vars":{"":null}},"description":"Rotate the three items and fill in a new record","params":[{"type":{"names":["Object"]},"name":"event"},{"type":{"names":["Object"]},"description":"clicked button","name":"event.target"}],"name":"onCarouselBtnClick","longname":"Carousel#onCarouselBtnClick","kind":"function","memberof":"Carousel","scope":"instance","$longname":"Carousel#onCarouselBtnClick","$kind":"method","id":795,"neoClassName":"Neo.component.Carousel"},{"comment":"/**\n     * As soon as the store is loaded we want to\n     * - create the three items\n     * - fill the first three records\n     */","meta":{"range":[7972,8025],"filename":"Carousel.mjs","lineno":278,"columnno":4,"path":"/Users/Shared/github/neomjs/neomjs-realworld-example-app/node_modules/neo.mjs/src/component","code":{"id":"astnode100027555","name":"Carousel#onStoreLoad","type":"MethodDefinition","paramnames":[]},"vars":{"":null}},"description":"As soon as the store is loaded we want to<br />- create the three items<br />- fill the first three records","name":"onStoreLoad","longname":"Carousel#onStoreLoad","kind":"function","memberof":"Carousel","scope":"instance","params":[],"$longname":"Carousel#onStoreLoad","$kind":"method","id":796,"neoClassName":"Neo.component.Carousel"}]}