Skip to content

Instantly share code, notes, and snippets.

いろはの「い」ハンズオン

開始

プロジェクト生成

sencha -sdk ~/mylib/touch/touch-2.3.1 generate app App .

Webサーバー起動

Ext.define("MyApp.view.edit.Edit",{
extend: "Ext.form.Panel",
xtype: 'myedit',
viewModel: {
type: "edit-edit"
},
bodyPadding: 10,
@sunvisor
sunvisor / test
Last active August 29, 2015 14:10
displayTpl : [
'<tpl for=".">',
'{[typeof values === "string" ? values : values["id"]]}',
" : ",
'{[typeof values === "string" ? values : values["name"]]}',
'<tpl if="xindex < xcount">, </tpl>',
'</tpl>'
],
@sunvisor
sunvisor / gist:1363475
Created November 14, 2011 07:50
xFrameworkPX_Controller_Excel Class
<?php
/**
* xFrameworkPX_Controller_Excel Class File
*
* PHP versions 5
*
* @category xFrameworkPX
* @package xFrameworkPX_Controller
* @author NAKAMURA, Hisashi <hisashi@sunvisor.net>
@sunvisor
sunvisor / buildapp.php
Created January 5, 2012 00:15
The Script build xFrameworkPX with ExtJS 4 Application.
#!/usr/bin/php
<?php
/**
* Create xFrameworkPX / Ext JS 4 Application
* xFrameworkPX / Ext JS 4 アプリケーションの骨組みを作ります
* File: buildPxApp.php
* Auther: sunvisor
* Date: 2011-09-30
* Copyright (C) Sunvisor 2011 All right reserved.
**/
@sunvisor
sunvisor / javascript.snip
Created January 5, 2012 07:44
Snippet for Ext JS 4
snippet app
Ext.application({
name: '${1:AppName}',
autoCreateViewport: true,
controllers: [
'Controller'
],
@sunvisor
sunvisor / override.js
Created June 29, 2012 06:40
Using override config in Ext.define class
/**
* Using override config in Ext.define class (Ext JS 4.1)
*/
Ext.onReady(function () {
Ext.define('MyWindow', {
extend: 'Ext.window.Window',
width: 300,
height: 200,
title: 'test',
@sunvisor
sunvisor / gist:6494017
Created September 9, 2013 10:43
Grid with grouping feature issue.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ggrid</title>
<script src="http://cdn.sencha.com/ext/gpl/4.2.1/ext-all.js"></script>
<link rel="stylesheet" href="http://cdn.sencha.com/ext/gpl/4.2.1/resources/ext-theme-classic/ext-theme-classic-all.css">
</head>
<body>
@sunvisor
sunvisor / ext-lang-ja.js
Last active February 10, 2016 08:52
Japanese locale file for Sencha Touch 2
/**
* Japanese locale file for Sencha Touch 2
* File: ext-lang-ja.js
* Auther: sunvisor/Xenophy (hisashi.nakamura@xenophy.com)
* history: 2012-09-15 Prototype Version (test is not completed)
**/
Ext.onReady(function() {
var cm = Ext.ClassManager,
exists = Ext.Function.bind(cm.get, cm);
@sunvisor
sunvisor / sencha_memo.md
Created March 12, 2019 23:14
Sencha のメモ

Sencha のメモ

Sencha の Ext JS を使っていて、「あれ、どうするんだっけ?」と忘れてしまいがちなことをメモしておきます。

Grid の変更マーク (赤い小さな三角形) を表示させない

viewConfig: {
    markDirty: false
},