I'm was looking but i cant find a way to draw a shape(circle,square) in sencha touch, just for drag that shape in a tablet. if some one knows how make this, would appreciate the help.
draw a shape in sencha touch
2k Views Asked by Alexander At
2
There are 2 best solutions below
0
Old McStopher
On
Assuming that you've already included the sencha-touch.js and touch-charts.js files in your index.html...
From the Sencha docs on Ext.draw.Component:
var drawComponent = Ext.create('Ext.draw.Component', {
viewBox: false,
items: [{
type: 'circle',
fill: '#79BB3F',
radius: 100,
x: 100,
y: 100
}]
});
Ext.create('Ext.Window', {
width: 215,
height: 235,
layout: 'fit',
items: [drawComponent]
}).show();
Related Questions in SENCHA-TOUCH
- Sencha touch lib not working on Chrome 43
- Loading binary image data to an image fails on Android 4.1 in Cordova Project
- iOS9 ATS: what about HTML5 based apps?
- Override Sencha Touch class
- How to add Sencha Touch to Visual Studio 2013 Apache Cordova App?
- Trying to scroll over image, but it keeps popping back
- How to increase size of local Storage for sencha app
- Sencha touch Scrolling issue for Card Layout on android and iOS devices
- Sencha touch native alert with 3 buttons is getting cut, in Android 5.0 and above (lollipop)
- Calling function when List Group Header Change in Sencha Touch
- How could I dynamically choose a div class with an if-else statement?
- Sencha Touch app components not visible until touching
- error sencha app build native
- Disable Sencha script loader cache busting but only while developing/debugging
- Sencha/Extjs rest call with all parameters
Related Questions in EXTJS
- How can I fit "ol.Map" to "Ext.panel.Panel"?
- Setting multiple events in one ext.net button
- How to dynamically change padding of a panel in ExtJS?
- ExtJS - row renderer - if cell has certain value, highlight entire row
- How to check mark a check column in a grid?
- Ext JS 5 Data Binding Combobox
- Compare date from combobox with current date
- ToolTip in bryntum scheduler
- Editable tree nodes - not working
- Loading delay extjs
- Angular does not recognize the dynamically loaded page in Extjs
- OverCls is not working in IE11
- How to apply style for Ext js xtype tabpanel using style property?
- Filtering Array within a store record
- ExtJs 4 : hide/show grid columns with grid that uses ArrayStore
Related Questions in SENCHA-CHARTS
- sencha touch: Configure chart legend interactions programmatically
- sencha Touch:how to shorten axis labels
- Sencha Touch: Changing line marker colors
- sencha Touch Chart: Is it Possible to display both Label and values in pie chart?
- sencha Touch chart: Applying gradient color to line fill
- running example"source code" from sencha website, causes error
- Sencha charts vertical axis values
- Sencha Chart phantom labels everywhere
- How to hide the NULL values in list item get from store in sencha touch
- Sencha Charts using Store data - Sencha touch
- ExtJS 4.2 - Chart Redraw, still see old labels
- Sencha Touch Chart: how can I handle TAP on a Bar column?
- Sencha Touch Charts not rendering
- Legend Template - Chart
- Sencha Charts Pie label rotation
Related Questions in SENCHA-TOUCH-THEMING
- customizing nestedlist title, sencha touch 2 PR4
- saas Error building app when using scss file from example code (Sencha Touch 2.3)
- Using Marker to Spot a particular address in a Map (Sencha Touch 2) Sencha Map
- Sencha Theming with Compass and Sass not working
- How to access Sencha touch List Row index, retrieve value, and apply changes?
- Adjust width of Ext.Msg in Sencha touch
- Sencha touch 2 - background image urls vs base64 encoding
- How to set the title for the navigation bar of the panel dynamically
- customizing sencha touch toolbar
- Custom xtypes as a cell in ext.listview
- How do I 'scale' the UI to a readable size
- Change Sench Touch 2.3 Theme before launch
- Registering a JSONm store in sencha touch
- How to handle tap event on sencha searchfield 'Clear' (X) icon?
- Sencha Touch toolbar height
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You'll want to use ext.draw, which is part of the Sencha Touch Charts add-on for Touch.