sencha-touch-2.3

How to load a CSS file based on a URL or client?

﹥>﹥吖頭↗ 提交于 2021-01-28 11:55:52
问题 I have two CSS files in my Sencha touch application. Lets call them A.css and B.css . Based on the URL I want the application to load different CSS. Lets say URL 1 is www.website.com/#1 so for this I would like to load A.css . similarly URL 2 is www.website.com/#2 so for this I would like to load B.css Is it possible to load CSS dynamically based on the URL? 回答1: You can use JavaScript Regex for this. Very easy method: // For www.website.com/#1 if (/www.website.com\/#1/.test(window.location

Code completion - Sencha + Aptana Studio 3

蹲街弑〆低调 提交于 2020-01-06 14:20:47
问题 I am working on Aptana Studio 3 and have downloaded Sencha as below link would advice: http://docs.sencha.com/touch/2.3.1/#!/guide/first_app I.e. downloaded Sencha (and XAMPP, installed the unzipped sencha files into a folder called touch inside xampp/htdocs). Localhost/touch/examples show up fine - so it is definitely working Have also installed Sencha cmd. This installs sencha cmd line tool version 4.0.x - and I am able to create a folder NewApp with skeletal sencha project using sencha

Sencha Touch 2: How can I add Google+ Login?

柔情痞子 提交于 2019-12-25 03:49:08
问题 I would like to add a Google+ Login to my Sencha Touch 2 webapplication, according to https://developers.google.com/+/web/signin/?hl=de#using_the_client-side_flow. I have added the google script into the app.json (defined as remote script) and it gets loaded. I created a Container with the html stuff (described by google): Ext.define('Bubbles.view.LoginView', { extend: 'Ext.Container', id: 'loginView', config: { fullscreen: true, layout: 'fit', html: '<span id=\"signinButton\">' + '<span

Add Dynamically A View in another View

女生的网名这么多〃 提交于 2019-12-11 16:19:43
问题 I have created a view Ext.define("App.view.leaders.MyViewName", { extend: 'App.view.basePopup', xtype: 'MyViewName', config: <Ext.form.IPanel>{ scrollable: 'vertical', items: [ { xtype: 'fieldset', title: 'Add New Auto Asset', instructions: '<hr class="separate" />', items: [ <Ext.field.ISelect>{ xtype: 'selectfield', label: 'Borrower Position', store: 'BorrowerPositionSelectorStore', }, <Ext.field.ISelect>{ xtype: 'selectfield', label: 'Asset Type', store: 'AssetTypeSelectorStore', }, {