7 Replies Latest reply on Sep 14, 2016 9:30 AM by spoorthy

    Custom App Action Tile

    spoorthy

      Hi ,

       

      I created a custom app action tile to display specific content . when we placed ?features=responsive,tile in defination.json iam getting the below error. if I remove that it is not opening up in mobile view.

      can anyone help me on this. or provide me a simple app-action tile which reads from configuration file and works in mobile view.

      Pawan ShahRyan Rutan

       

       

      Thanks,

       

      Spoorthy.

        • Re: Custom App Action Tile
          Ryan Rutan

          Can you share any more of your code?  Perhaps what is in the onConfig block?

            • Re: Custom App Action Tile
              spoorthy

              This is my configuration.js

               

               

              function onReady(tileConfig,tileOptions,viewer,container) {

               

               

                // make sure config has default value

                if (tileConfig === null) {

                  tileConfig = { };

                } // end if

               

               

                if (!tileConfig["data"]) {

                    tileConfig["data"] = { };

                } // end if

               

               

                if (!tileConfig["data"]["configString"]) {

                    tileConfig["data"]["configString"] = "";

                }

                // end if

              if (!tileConfig["data"]["space"]) {

                    tileConfig["data"]["space"] = "";

                }

               

               

               

               

                // populate the dialog with existing config value

                $("#config_string").val( tileConfig["data"]["configString"]);

                  $("#space_id").val( tileConfig["data"]["space"]);

               

               

               

                // update config object after clicking submit

                $("#btn_submit").click( function() {

                    tileConfig["data"]["configString"] = $("#config_string").val();

                     tileConfig["data"]["space"] = $("#space_id").val();

                    jive.tile.close(tileConfig, {} );

                });

               

               

                app.resize();

              } // end function

               

               

              //************************************************************************

              //NOTE: CALLED AS SOON AS THE CONFIG IS RESOLVED

              //************************************************************************

              function onConfig(tileConfig,tileOptions) {

                console.log('onConfig',tileConfig,tileOptions);

              } // end function

               

               

              //************************************************************************

              //NOTE: CALLED AS SOON AS THE CONTAINER IS RESOLVED

              //************************************************************************

              function onContainer(container) {

                console.log('onContainer',container);

              } // end function

               

               

              //************************************************************************

              //NOTE: CALLED AS SOON AS THE VIEWER IS RESOLVED

              //************************************************************************

              function onViewer(viewer) {

                console.log('onViewer',viewer);

              } // end function

            • Re: Custom App Action Tile

              Hey there, try ?features=responsive,tile,core-v3