dojox/calc/FuncGen.js

  • Provides:

    • dojox.calc.FuncGen
  • dojox.calc.FuncGen

    • type
      Function
    • chains:
      • dijit._Widget: (prototype)
      • dijit._Widget: (call)
      • dijit._Templated: (call)
    • mixins:
      • dijit._Templated.prototype: (prototype)
    • summary
      The dialog layout for making functions
  • dojox.calc.FuncGen.templateString

    • summary
  • dojox.calc.FuncGen.widgetsInTemplate

    • summary
  • dojox.calc.FuncGen.onSelect

    • type
      Function
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
    • summary
  • dojox.calc.FuncGen.onClear

    • type
      Function
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
    • summary
  • dojox.calc.FuncGen.saveFunction

    • type
      Function
    • parameters:
      • name: (typeof )
      • args: (typeof )
      • body: (typeof )
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
    • summary
  • dojox.calc.FuncGen.onSaved

    • type
      Function
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
       },
       onSaved: function(){
        // this on save needs to be overriden if you want Executor parsing support
        //console.log("Save was pressed");
    • summary
  • dojox.calc.FuncGen.clear

    • type
      Function
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
       },
       onSaved: function(){
        // this on save needs to be overriden if you want Executor parsing support
        //console.log("Save was pressed");
       },
       clear: function(){
        // summary
        // clear the name, arguments, and body
        this.textarea.set("value", "");
        this.args.set("value", "");
        this.combo.set("value", "");
    • summary
  • dojox.calc.FuncGen.reset

    • type
      Function
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
       },
       onSaved: function(){
        // this on save needs to be overriden if you want Executor parsing support
        //console.log("Save was pressed");
       },
       clear: function(){
        // summary
        // clear the name, arguments, and body
        this.textarea.set("value", "");
        this.args.set("value", "");
        this.combo.set("value", "");
       },
       reset: function(){
        // summary
        // set the arguments and body to match a function selected if it exists in the function list
        if(this.combo.get("value") in this.functions){
         this.textarea.set("value", this.functions[this.combo.get("value")].body);
         this.args.set("value", this.functions[this.combo.get("value")].args);
        }
    • summary
  • dojox.calc.FuncGen.onReset

    • type
      Function
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
       },
       onSaved: function(){
        // this on save needs to be overriden if you want Executor parsing support
        //console.log("Save was pressed");
       },
       clear: function(){
        // summary
        // clear the name, arguments, and body
        this.textarea.set("value", "");
        this.args.set("value", "");
        this.combo.set("value", "");
       },
       reset: function(){
        // summary
        // set the arguments and body to match a function selected if it exists in the function list
        if(this.combo.get("value") in this.functions){
         this.textarea.set("value", this.functions[this.combo.get("value")].body);
         this.args.set("value", this.functions[this.combo.get("value")].args);
        }
       },
       onReset: function(){
        // summary
        // (Reset button on click event) reset the arguments and body to their previously saved state if the user says yes
        //console.log("Reset was pressed");
        if(this.combo.get("value") in this.functions){
         var answer = confirm("Do you want to reset this function?");
         if(answer){
          this.reset();
          this.status.set("value", "The function has been reset to its last save point.");
         }
        }
    • summary
  • dojox.calc.FuncGen.deleteThing

    • type
      Function
    • parameters:
      • item: (typeof )
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
       },
       onSaved: function(){
        // this on save needs to be overriden if you want Executor parsing support
        //console.log("Save was pressed");
       },
       clear: function(){
        // summary
        // clear the name, arguments, and body
        this.textarea.set("value", "");
        this.args.set("value", "");
        this.combo.set("value", "");
       },
       reset: function(){
        // summary
        // set the arguments and body to match a function selected if it exists in the function list
        if(this.combo.get("value") in this.functions){
         this.textarea.set("value", this.functions[this.combo.get("value")].body);
         this.args.set("value", this.functions[this.combo.get("value")].args);
        }
       },
       onReset: function(){
        // summary
        // (Reset button on click event) reset the arguments and body to their previously saved state if the user says yes
        //console.log("Reset was pressed");
        if(this.combo.get("value") in this.functions){
         var answer = confirm("Do you want to reset this function?");
         if(answer){
          this.reset();
          this.status.set("value", "The function has been reset to its last save point.");
         }
        }
       },
       deleteThing: function(item){
        // summary
        // delete an item in the writestore
        if (this.writeStore.isItem(item)){
         // delete it
         //console.log("Found item "+item);
         this.writeStore.deleteItem(item);
         this.writeStore.save();
        }else{
         //console.log("Unable to locate the item");
        }
    • summary
  • dojox.calc.FuncGen.deleteFunction

    • type
      Function
    • parameters:
      • name: (typeof )
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
       },
       onSaved: function(){
        // this on save needs to be overriden if you want Executor parsing support
        //console.log("Save was pressed");
       },
       clear: function(){
        // summary
        // clear the name, arguments, and body
        this.textarea.set("value", "");
        this.args.set("value", "");
        this.combo.set("value", "");
       },
       reset: function(){
        // summary
        // set the arguments and body to match a function selected if it exists in the function list
        if(this.combo.get("value") in this.functions){
         this.textarea.set("value", this.functions[this.combo.get("value")].body);
         this.args.set("value", this.functions[this.combo.get("value")].args);
        }
       },
       onReset: function(){
        // summary
        // (Reset button on click event) reset the arguments and body to their previously saved state if the user says yes
        //console.log("Reset was pressed");
        if(this.combo.get("value") in this.functions){
         var answer = confirm("Do you want to reset this function?");
         if(answer){
          this.reset();
          this.status.set("value", "The function has been reset to its last save point.");
         }
        }
       },
       deleteThing: function(item){
        // summary
        // delete an item in the writestore
        if (this.writeStore.isItem(item)){
         // delete it
         //console.log("Found item "+item);
         this.writeStore.deleteItem(item);
         this.writeStore.save();
        }else{
         //console.log("Unable to locate the item");
        }
       },
       deleteFunction: function(name){
        // override me
    • summary
  • dojox.calc.FuncGen.onDelete

    • type
      Function
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
       },
       onSaved: function(){
        // this on save needs to be overriden if you want Executor parsing support
        //console.log("Save was pressed");
       },
       clear: function(){
        // summary
        // clear the name, arguments, and body
        this.textarea.set("value", "");
        this.args.set("value", "");
        this.combo.set("value", "");
       },
       reset: function(){
        // summary
        // set the arguments and body to match a function selected if it exists in the function list
        if(this.combo.get("value") in this.functions){
         this.textarea.set("value", this.functions[this.combo.get("value")].body);
         this.args.set("value", this.functions[this.combo.get("value")].args);
        }
       },
       onReset: function(){
        // summary
        // (Reset button on click event) reset the arguments and body to their previously saved state if the user says yes
        //console.log("Reset was pressed");
        if(this.combo.get("value") in this.functions){
         var answer = confirm("Do you want to reset this function?");
         if(answer){
          this.reset();
          this.status.set("value", "The function has been reset to its last save point.");
         }
        }
       },
       deleteThing: function(item){
        // summary
        // delete an item in the writestore
        if (this.writeStore.isItem(item)){
         // delete it
         //console.log("Found item "+item);
         this.writeStore.deleteItem(item);
         this.writeStore.save();
        }else{
         //console.log("Unable to locate the item");
        }
       },
       deleteFunction: function(name){
        // override me
       },
       onDelete: function(){
        // summary
        // (Delete button on click event) delete a function if the user clicks yes


        //console.log("Delete was pressed");


        var name;
        if((name = this.combo.get("value")) in this.functions){
         var answer = confirm("Do you want to delete this function?");
         if(answer){
          var item = this.combo.item;


          //this.writeStore.fetchItemByIdentity({identity:name, onItem: this.deleteThing, onError:null});


          this.writeStore.deleteItem(item);
          this.writeStore.save();


          this.deleteFunction(name);
          delete this.functions[name];
          this.clear();
         }
        }else{
         this.status.set("value", "Function cannot be deleted, it isn't saved.");
        }
    • summary
  • dojox.calc.FuncGen.readyStatus

    • type
      Function
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
       },
       onSaved: function(){
        // this on save needs to be overriden if you want Executor parsing support
        //console.log("Save was pressed");
       },
       clear: function(){
        // summary
        // clear the name, arguments, and body
        this.textarea.set("value", "");
        this.args.set("value", "");
        this.combo.set("value", "");
       },
       reset: function(){
        // summary
        // set the arguments and body to match a function selected if it exists in the function list
        if(this.combo.get("value") in this.functions){
         this.textarea.set("value", this.functions[this.combo.get("value")].body);
         this.args.set("value", this.functions[this.combo.get("value")].args);
        }
       },
       onReset: function(){
        // summary
        // (Reset button on click event) reset the arguments and body to their previously saved state if the user says yes
        //console.log("Reset was pressed");
        if(this.combo.get("value") in this.functions){
         var answer = confirm("Do you want to reset this function?");
         if(answer){
          this.reset();
          this.status.set("value", "The function has been reset to its last save point.");
         }
        }
       },
       deleteThing: function(item){
        // summary
        // delete an item in the writestore
        if (this.writeStore.isItem(item)){
         // delete it
         //console.log("Found item "+item);
         this.writeStore.deleteItem(item);
         this.writeStore.save();
        }else{
         //console.log("Unable to locate the item");
        }
       },
       deleteFunction: function(name){
        // override me
       },
       onDelete: function(){
        // summary
        // (Delete button on click event) delete a function if the user clicks yes


        //console.log("Delete was pressed");


        var name;
        if((name = this.combo.get("value")) in this.functions){
         var answer = confirm("Do you want to delete this function?");
         if(answer){
          var item = this.combo.item;


          //this.writeStore.fetchItemByIdentity({identity:name, onItem: this.deleteThing, onError:null});


          this.writeStore.deleteItem(item);
          this.writeStore.save();


          this.deleteFunction(name);
          delete this.functions[name];
          this.clear();
         }
        }else{
         this.status.set("value", "Function cannot be deleted, it isn't saved.");
        }
       },
       readyStatus: function(){
        // summary
        // set the status in the template to ready
        this.status.set("value", "Ready");
    • summary
  • dojox.calc.FuncGen.writeStore

    • summary
  • dojox.calc.FuncGen.readStore

    • summary
  • dojox.calc.FuncGen.functions

    • summary
  • dojox.calc.FuncGen.startup

    • type
      Function
    • source: [view]
      define("dojox/calc/FuncGen", ["dojo", "dijit/_Templated", "dojox/math/_base", "dijit/dijit", "dijit/form/ComboBox", "dijit/form/SimpleTextarea", "dijit/form/Button", "dojo/data/ItemFileWriteStore"], function(dojo) {


      dojo.experimental("dojox.calc.FuncGen");


      dojo.declare(
       "dojox.calc.FuncGen",
       [dijit._Widget, dijit._Templated],
      {
       // summary:
       //  The dialog layout for making functions
       //
       templateString: dojo.cache("dojox.calc", "templates/FuncGen.html"),


       widgetsInTemplate:true,


       onSelect: function(){
        // summary
        // if they select something in the name combobox, then change the body and arguments to correspond to the function they selected
        this.reset();
       },
       onClear: function(){
        // summary
        // the clear button in the template calls this
        // clear the name, arguments, and body if the user says yes
        var answer = confirm("Do you want to clear the name, argument, and body text?");
        if(answer){
         this.clear();
        }
       },
       saveFunction: function(name, args, body){
        // override me
       },
       onSaved: function(){
        // this on save needs to be overriden if you want Executor parsing support
        //console.log("Save was pressed");
       },
       clear: function(){
        // summary
        // clear the name, arguments, and body
        this.textarea.set("value", "");
        this.args.set("value", "");
        this.combo.set("value", "");
       },
       reset: function(){
        // summary
        // set the arguments and body to match a function selected if it exists in the function list
        if(this.combo.get("value") in this.functions){
         this.textarea.set("value", this.functions[this.combo.get("value")].body);
         this.args.set("value", this.functions[this.combo.get("value")].args);
        }
       },
       onReset: function(){
        // summary
        // (Reset button on click event) reset the arguments and body to their previously saved state if the user says yes
        //console.log("Reset was pressed");
        if(this.combo.get("value") in this.functions){
         var answer = confirm("Do you want to reset this function?");
         if(answer){
          this.reset();
          this.status.set("value", "The function has been reset to its last save point.");
         }
        }
       },
       deleteThing: function(item){
        // summary
        // delete an item in the writestore
        if (this.writeStore.isItem(item)){
         // delete it
         //console.log("Found item "+item);
         this.writeStore.deleteItem(item);
         this.writeStore.save();
        }else{
         //console.log("Unable to locate the item");
        }
       },
       deleteFunction: function(name){
        // override me
       },
       onDelete: function(){
        // summary
        // (Delete button on click event) delete a function if the user clicks yes


        //console.log("Delete was pressed");


        var name;
        if((name = this.combo.get("value")) in this.functions){
         var answer = confirm("Do you want to delete this function?");
         if(answer){
          var item = this.combo.item;


          //this.writeStore.fetchItemByIdentity({identity:name, onItem: this.deleteThing, onError:null});


          this.writeStore.deleteItem(item);
          this.writeStore.save();


          this.deleteFunction(name);
          delete this.functions[name];
          this.clear();
         }
        }else{
         this.status.set("value", "Function cannot be deleted, it isn't saved.");
        }
       },
       readyStatus: function(){
        // summary
        // set the status in the template to ready
        this.status.set("value", "Ready");
       },
       writeStore:null, //the user can save functions to the writestore
       readStore:null, // users cannot edit the read store contents, but they can use them
       functions:null, // use the names to get to the function


       /*postCreate: function(){
        this.functions = []; // use the names to get to the function
        this.writeStore = new dojo.data.ItemFileWriteStore({data: {identifier: 'name', items:[]}});


        this.combo.set("store", this.writeStore);
       },*/


       startup: function(){
        // summary
        // make sure the parent has a close button if it needs to be able to close
        // link the write store too
        this.combo.set("store", this.writeStore);


        this.inherited(arguments);// this is super class startup
        // close is only valid if the parent is a widget with a close function
        var parent = dijit.getEnclosingWidget(this.domNode.parentNode);
        if(parent && typeof parent.close == "function"){
         this.closeButton.set("onClick", dojo.hitch(parent, 'close'));
        }else{
         dojo.style(this.closeButton.domNode, "display", "none"); // hide the button
        }
    • summary
  • dojox.calc

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary