code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
<script type="text/javascript">
var adfly_id = 2354070;
var adfly_advert = 'int';
var frequency_cap = 5;
var frequency_delay = 5;
var init_delay = 3;
</script>
<script src="http://cdn.adf.ly/js/entry.js"></script> | JavaScript |
module('Node');
test('node', function() {
expect(36);
var x = 10, y = 35, width = 45, height = 28;
var graph = new bui.Graph(document.getElementById('dummy'));
var node = graph.add(bui.Node);
node.size(width, height);
var positionCalled = false, sizeCalled = false;
node.bind(bui.Node.Li... | JavaScript |
module('Labelable');
test('labelable.color', function() {
var graph = new bui.Graph(document.getElementById('dummy')),
labelable = graph.add(bui.Labelable),
expectedBgColor = '',
expectedLabelColor = ''
expectedBorderColor = '',;
var listener = function (origin, newColor) {
if (newColor.backgrou... | JavaScript |
function testObservable(observable) {
expect(7);
var type1 = 'foo', type2 = 'bar', expectedType = null;
var generateTypeListener = function(type) {
var associatedType = type;
return function() {
equal(associatedType, expectedType);
};
};
observable._addType(ty... | JavaScript |
module('util');
test('string.removeNonNumbers', function() {
equal('Answer is 42'.removeNonNumbers(), '42');
equal('a007b'.removeNonNumbers(), '007');
});
test('string.endsWith', function() {
expect(2);
var end = 'bar';
var start = 'foo';
var complete = start + end;
ok(complete.endsWith(... | JavaScript |
module('Graph');
test('graph.scale', function() {
var graph = new bui.Graph(document.getElementById('dummy'));
var expectedScale = 0;
var listener = function(origin, newScale) {
equal(newScale, expectedScale, 'Scale provided to listener.');
equal(origin.scale(), expectedScale, 'Scale of p... | JavaScript |
module('Drawable');
test('drawable.classes', function() {
expect(12);
var graph = new bui.Graph(document.getElementById('dummy'));
var drawable = graph.add(bui.Drawable);
var expectedClassString = null;
drawable.bind(bui.Drawable.ListenerType.classes,
function(node, classString) {
... | JavaScript |
/**
* QUnit - A JavaScript Unit Testing Framework
*
* http://docs.jquery.com/QUnit
*
* Copyright (c) 2011 John Resig, Jörn Zaefferer
* Dual licensed under the MIT (MIT-LICENSE.txt)
* or GPL (GPL-LICENSE.txt) licenses.
*/
(function(window) {
var defined = {
setTimeout: typeof window.setTimeout !== "undefined"... | JavaScript |
var simpleExample = {"edges":[
{
"source":"c1",
"sbo":15,
"data":{
"handles":[150,0,-25,-25,-25,-25,0,-150],
"points":[200,200,300,200]
},
"target":"c2",
"id":0,
"type":"Substrate"
},{
"source":"c2",
"sbo":15,
"data":{
"handles":[5,5,-5,5],
"points":[]
},
"target":"c3",
... | JavaScript |
var influenza = {
"nodes": [
{
"data": {
"modifications": [],
"subcomponents": [],
"clone_marker": -1,
"label": "Golgi_... | JavaScript |
var showcaseJSON = {
nodes : [
{
id : 'node1',
sbo : 253,
data : {
x : 100,
y : 300,
subnodes : [
'node2',
'node3'
],
'modification' : [
... | JavaScript |
var customExample = {
nodes : [
{
id : 'node1',
sbo : 253,
data : {
x : 100,
y : 500,
subnodes : [
'node2',
'node3'
],
'modification' : [
... | JavaScript |
var customPositionsExample1 = {
nodes : [
{
id : 'node1',
data : {
x : 50,
y : 300
}
},
{
id : 'node2'
},
{
id : 'node3'
},
{
id : 'node4',
data... | JavaScript |
var simpleExample = {
"edges" : [
{
"id" : 0,
"sbo" : 15,
"source" : "MAP:Cs7732-18-5_CY_Reactome:177923",
"target" : "Reactome:177923"
},
{
"id" : 1,
"sbo" : 15,
"source" : "Reactome:180522",
"target" : "Reactome:177923"
... | JavaScript |
var simpleExample = {
"edges" : [
{
"id" : 0,
"sbo" : 15,
"source" : "MAP:Cs7732-18-5_CY_Reactome:177923",
"target" : "Reactome:177923"
},
{
"id" : 1,
"sbo" : 15,
"source" : "Reactome:180522",
"target" : "Reactome:177923"
... | JavaScript |
var customPositionsExample2 = {
nodes : [
{
id : 'node1',
data : {
x : 50,
y : 300
}
},
{
id : 'node2'
},
{
id : 'node3'
},
{
id : 'node4',
data... | JavaScript |
var showcaseDifferentPositionsJSON = {
nodes : [
{
id : 'node1',
data : {
x : 50,
y : 300
}
},
{
id : 'node2'
},
{
id : 'node3'
},
{
id : 'node4',
... | JavaScript |
var complexExample = {
"edges" : [
{
"id" : 0,
"sbo" : 15,
"source" : "Reactome:109796",
"target" : "Reactome:177938"
},
{
"id" : 1,
"sbo" : 15,
"source" : "MAP:Cb15996_CY_Reactome:177938",
"target" : "Reactome:177938"
},... | JavaScript |
var complexExample = {
"edges" : [
{
"id" : 0,
"sbo" : 15,
"source" : "Reactome:109796",
"target" : "Reactome:177938"
},
{
"id" : 1,
"sbo" : 15,
"source" : "MAP:Cb15996_CY_Reactome:177938",
"target" : "Reactome:177938"
},... | JavaScript |
var jsdom = require('jsdom');
var fs = require('fs');
var exec = require('child_process').exec;
var jquery = fs.readFileSync("./jquery-1.7.js").toString();
//var jquery = fs.readFileSync("./jquery-1.6.min.js").toString();
var biog = fs.readFileSync("./biographer-ui.js").toString();
var css = fs.readFileSync... | JavaScript |
/*
* All these functions and variables are defined in the util.js file as
* the specific node types need access for the variables for the JSON
* export.
*/
addMapping(nodeMapping, [285], bui.UnspecifiedEntity);
addMapping(nodeMapping, [247, 240, 245], bui.SimpleChemical);
addMapping(nodeMapping, [245, 252], bui.Ma... | JavaScript |
(function(bui) {
bui.grid = {
nodes:[],
edges:[],
width:0,
height:0,
matrix_nodes: [],
grid_space: 80//px
}
//=====================================================
bui.grid.spiral = function(length){
//--------------------------------------
var spiral_count4 = 0;
var spiral_cur_e... | JavaScript |
(function(bui){
bui.layouter={};
/* creates a string from the json data which serves as input for the layouter */
bui.layouter.makeLayouterFormat = function(jdata){
var cc=0; // node index counter
var ccc=1; // compartment index counter (starts with 1 as 0 is no compartment)
var idx={};
... | JavaScript |
(function(bui) {
var identifier = 'bui.Observable';
/**
* @class
* By inheriting from this class you can allow observers. Please note
* that you have to add types using the {@link bui.Observable#addType}
* function before listener can be added.
*
* @extends bui.Object
*/
... | JavaScript |
(function(bui) {
var identifier = 'bui.Macromolecule';
/**
* @class
* A node with the shape of an rectangle and a label inside.
* This shape has be default rounded corners.
*
* @extends bui.RectangularNode
* @constructor
*/
bui.Macromolecule = function() {
bui.Macr... | JavaScript |
(function(bui) {
var identifier = 'bui.Phenotype';
/*
* Generate a path's data attribute
*
* @param {Number} width Width of the shape
* @param {Number} height Height of the shape
* @return {String} a path's data attribute value
*/
var sizeChanged = function(node, width, height... | JavaScript |
(function(bui) {
var identifier = 'bui.LogicalOperator';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.LogicalOperator} LogicalOperator
* @return {String} listener identifier
*/
var listenerIdentifier = function(LogicalOperator) {
r... | JavaScript |
(function(bui) {
var identifier = 'bui.Node';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Node} node
* @return {String} listener identifier
*/
var listenerIdentifier = function(node) {
return identifier + node.id();
};
/... | JavaScript |
(function(bui) {
var identifier = 'bui.UnitOfInformation';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.UnitOfInformation} UnitOfInformation
* @return {String} listener identifier
*/
var listenerIdentifier = function(UnitOfInformation) {
... | JavaScript |
(function(bui) {
var identifier = 'bui.Association';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Association} Association
* @return {String} listener identifier
*/
var listenerIdentifier = function(Association) {
return identifier... | JavaScript |
(function(bui) {
var identifier = 'bui.Labelable';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Labelable} labelable
* @return {String} listener identifier
*/
var listenerIdentifier = function(labelable) {
return identifier + label... | JavaScript |
(function(bui) {
var identifier = 'bui.Perturbation';
/*
* Generate a path's data attribute
*
* @param {Number} width Width of the shape
* @param {Number} height Height of the shape
* @return {String} a path's data attribute value
*/
var sizeChanged = function(node, width, hei... | JavaScript |
(function(bui) {
var identifier = 'bui.EdgeHandle';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.EdgeHandle} EdgeHandle
* @return {String} listener identifier
*/
var listenerIdentifier = function(EdgeHandle) {
return identifier + E... | JavaScript |
(function(bui) {
var identifier = 'bui.RectangularNode';
// generate a path's arc data parameter
// http://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands
var arcParameter = function(rx, ry, xAxisRotation, largeArcFlag, sweepFlag,
x, y) {
return [rx,
... | JavaScript |
(function(bui) {
var identifier = 'bui.Helper';
/**
* @class
* Helper node "helper"
*
* @extends bui.RectangularNode
* @constructor
*/
bui.Helper = function() {
bui.Helper.superClazz.apply(this, arguments);
this.labelClass(bui.settings.css.classes.smallText,
... | JavaScript |
(function(bui) {
var identifier = 'bui.Process';
/**
* @class
* Process node "process"
*
* @extends bui.RectangularNode
* @constructor
*/
bui.Process = function(type) {
bui.Process.superClazz.apply(this, arguments);
this.labelClass(bui.settings.css.classes.smal... | JavaScript |
(function(bui) {
var identifier = 'bui.VariableValue';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.RectangularNode} RectangularNode
* @return {String} listener identifier
*/
var listenerIdentifier = function(Node) {
return id... | JavaScript |
(function(bui) {
/**
* @class
* Drag handle node type which is useful for manipulation of edge shapes
* of splines
*
* @extends bui.EdgeHandle
* @constructor
*/
bui.SplineEdgeHandle = function() {
bui.SplineEdgeHandle.superClazz.apply(this, arguments);
this.a... | JavaScript |
(function(bui) {
var identifier = 'bui.Compartment';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Compartment} Compartment
* @return {String} listener identifier
*/
var listenerIdentifier = function(Compartment) {
return identifier ... | JavaScript |
(function(bui) {
var identifier = 'bui.EmptySet';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.EmptySet} EmptySet
* @return {String} listener identifier
*/
var listenerIdentifier = function(EmptySet) {
return identifier + EmptySet.... | JavaScript |
(function(bui) {
var identifier = 'bui.Tag';
/*
* Generate a path's data attribute
*
* @param {Number} width Width of the shape
* @param {Number} height Height of the shape
* @return {String} a path's data attribute value
*/
var sizeChanged = function(node, width, height) {
... | JavaScript |
(function(bui) {
var identifier = 'bui.Complex';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Complex} Complex
* @return {String} listener identifier
*/
var listenerIdentifier = function(Complex) {
return identifier + Complex.id()... | JavaScript |
(function(bui) {
var identifier = 'bui.SimpleChemical';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.SimpleChemical} SimpleChemical
* @return {String} listener identifier
*/
var listenerIdentifier = function(SimpleChemical) {
retur... | JavaScript |
(function(bui) {
var identifier = 'bui.StateVariable';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.StateVariable} StateVariable
* @return {String} listener identifier
*/
var listenerIdentifier = function(StateVariable) {
return id... | JavaScript |
(function(bui) {
var identifier = 'bui.Dissociation';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Dissociation} Dissociation
* @return {String} listener identifier
*/
var listenerIdentifier = function(Dissociation) {
return identi... | JavaScript |
(function(bui) {
var identifier = 'bui.UnspecifiedEntity';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.UnspecifiedEntity} UnspecifiedEntity
* @return {String} listener identifier
*/
var listenerIdentifier = function(UnspecifiedEntity) {
... | JavaScript |
(function(bui) {
var identifier = 'bui.NucleicAcidFeature';
/**
* @class
* A node with the shape of an rectangle and a label inside.
* This shape has be default rounded corners.
*
* @extends bui.RectangularNode
* @constructor
*/
bui.NucleicAcidFeature = function() {
... | JavaScript |
(function(bui) {
/**
* Default generator for node types. This will be used when
* nodeJSON.generator is undefined.
*
* @param {bui.Graph} graph The graph to which the node shall be added
* @param {Object} nodeType Node type retrieved from the node mapping.
* @param {Object} nodeJSON N... | JavaScript |
(function(bui) {
/**
* @namespace Namespace of utility functionality
*/
bui.util = {};
/**
* @description
* Utility function for the usage of Object.create as it requires some
* meta data about the properties like configurable or writable.
*
* @param {Object} value The v... | JavaScript |
(function(bui) {
var readyFunctions = [];
/**
* @description
* Use this function to add functions (callbacks) which are to be
* executed when the whole document is done loading.
*
* @param {Function} callback Function to be executed when the document is
* ready
*/
bui.... | JavaScript |
// can't make this variable private because of the JsDoc toolkit.
/**
* @namespace The whole biographer-ui library can be accessed through this var.
*/
bui = {};
/**
* @namespace SVG namespace definition
*/
bui.svgns = "http://www.w3.org/2000/svg";
/**
* @namespace Settings are stored within this variable
*/
b... | JavaScript |
(function(bui) {
/**
* @namespace Generator functions for connecting arcs can be found as
* properties of this object.
*/
bui.connectingArcs = {};
var connectingArcIdCounter = 0;
/**
* @private
* Helper function for the generation of SVGMarkerElement elements.
*
* @p... | JavaScript |
(function(bui) {
var identifier = 'bui.Edge';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Edge} edge
* @return {String} listener identifier
*/
var listenerIdentifier = function(edge) {
return identifier + edge.id();
};
/*... | JavaScript |
(function(bui) {
var identifier = 'bui.AttachedDrawable';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.AttachedDrawable} attachedDrawable
* @return {String} listener identifier
*/
var listenerIdentifier = function(attachedDrawable) {
... | JavaScript |
(function(bui) {
var identifier = 'bui.Spline';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Spline} spline
* @return {String} listener identifier
*/
var listenerIdentifier = function(spline) {
return identifier + spline.id();
... | JavaScript |
(function(bui) {
var identifier = 'bui.AbstractLine';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.AbstractLine} abstractLine
* @return {String} listener identifier
*/
var listenerIdentifier = function(abstractLine) {
return identi... | JavaScript |
(function(bui) {
var identifier = 'bui.StraightLine';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.StraightLine} straightLine
* @return {String} listener identifier
*/
var listenerIdentifier = function(straightLine) {
return identi... | JavaScript |
(function(bui) {
// used to identify and compare the graph instances
var graphCounter = 0;
var identifier = 'bui.Graph';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Graph} graph
* @return {String} listener identifier
*/
var liste... | JavaScript |
(function(bui) {
var identifier = 'bui.Drawable';
/**
* @private
* Function used for the generation of listener identifiers
* @param {bui.Drawable} drawable
* @return {String} listener identifier
*/
var listenerIdentifier = function(drawable) {
return identifier + drawable.... | JavaScript |
/*
* jquery.simulate - simulate browser mouse and keyboard events
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
*/
;(function($) {
$.fn.extend({
simulate: function(type, options) {
return this.each(function(... | JavaScript |
/*
* Copyright (c) 2012 Taye Adeyemi
* Open source under the MIT License.
* https://raw.github.com/biographer/interact.js/master/LICENSE
*/
/**
* @namespace interact.js module
* @name interact
*/
window.interact = (function (window) {
'use strict';
var document = window.document,
console = wind... | JavaScript |
function create_menu(basepath)
{
var base = (basepath == 'null') ? '' : basepath;
document.write(
'<table cellpadding="0" cellspaceing="0" border="0" style="width:98%"><tr>' +
'<td class="td" valign="top">' +
'<ul>' +
'<li><a href="'+base+'index.html">User Guide Home</a></li>' +
'<li><a href="'+base+'toc.... | JavaScript |
/*
moo.fx, simple effects library built with prototype.js (http://prototype.conio.net).
by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE.
for more info (http://moofx.mad4milk.net).
10/24/2005
v(1.0.2)
*/
//base
var fx = new Object();
fx.Base = function(){};
fx.Base.prototype = {
setOptions: function(option... | JavaScript |
window.onload = function() {
myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
} | JavaScript |
/**
* @license
*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | JavaScript |
/**
* Creates a new level control.
* @constructor
* @param {IoMap} iomap the IO map controller.
* @param {Array.<string>} levels the levels to create switchers for.
*/
function LevelControl(iomap, levels) {
var that = this;
this.iomap_ = iomap;
this.el_ = this.initDom_(levels);
google.maps.event.addList... | JavaScript |
/**
* Creates a new Floor.
* @constructor
* @param {google.maps.Map=} opt_map
*/
function Floor(opt_map) {
/**
* @type Array.<google.maps.MVCObject>
*/
this.overlays_ = [];
/**
* @type boolean
*/
this.shown_ = true;
if (opt_map) {
this.setMap(opt_map);
}
}
/**
* @param {google.maps.M... | JavaScript |
// Copyright 2011 Google
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | JavaScript |
var CONFIG = {
AVAILABLE_DBS: ["mysql", "sqlite", "web2py", "mssql", "postgresql", "oracle", "sqlalchemy", "vfp9", "cubrid"],
DEFAULT_DB: "mysql",
AVAILABLE_LOCALES: ["ar", "cs", "de", "el", "en", "eo", "es", "fr", "hu", "it", "ja", "pl", "pt_BR", "ro", "ru", "sv", "zh"],
DEFAULT_LOCALE: "en",
AVAILABLE_BACKEND... | JavaScript |
/* (c) 2007 - now() Ondrej Zara, 1.6 */
var OZ = {
$:function(x) { return typeof(x) == "string" ? document.getElementById(x) : x; },
opera:!!window.opera,
ie:!!document.attachEvent && !window.opera,
gecko:!!document.getAnonymousElementByAttribute,
webkit:!!navigator.userAgent.match(/webkit/i),
khtml:!!navigator.u... | JavaScript |
function _(str) { /* getText */
if (!(str in window.LOCALE)) { return str; }
return window.LOCALE[str];
}
var DATATYPES = false;
var LOCALE = {};
var SQL = {};
/* -------------------- base visual element -------------------- */
SQL.Visual = OZ.Class(); /* abstract parent */
SQL.Visual.prototype.init = function() {... | JavaScript |
/*
* Advenced Recent Posts Scroller Version 3 For Blogger
* Widget By Online Computer Institute
* Url: http://www.adhikarikedar.blogspot.com
* Copyright 2013, by Kedar adhikari (Online Computer Institute)
*/
function kdrAdvRecentPostsScrollerv3(json) {
var kdrrecentposts;
var kdrpostlink;
var kdro... | JavaScript |
<center><b><br />Choose your favorite color and change background on this <a href='www.adhikarikedar.blogspot.com' title='Get this'>Site</a></b></center>
<br/>
<script type="text/javascript">
function bgChange(bg)
{
document.body.style.background=bg;
}
</script>
| JavaScript |
var myAdfLinks = [];
function addMyListener(element, eventName, handler) {
if (element.addEventListener) {
element.addEventListener(eventName, handler, false);
}
else if (element.attachEvent) {
element.attachEvent('on' + eventName, handler);
}
else {
element['on' + eventName] = handler;... | JavaScript |
function createTag(name, attributes, innerHTML) {
return "<" + name + (attributes == "" ? "" : " ") + attributes + ">" + innerHTML + "</" + name + ">";
}
function createEditModeSection(section) {
var boxes = section.hBoxes;
var iLength = boxes.length;
var html = "";
var lableValueSpacing = ... | JavaScript |
function FormatNumberEntity (numberFormat, fullFormatOpt) {
this.fullFormat = false;
this.decimalSeparate = " ";
this.fractionSeparate = ".";
this.decimalGroupCount = 3;
this.fractionCount = 0;
this.numberFormat = "";
this.validNumberFormat = false;
this.init = ini... | JavaScript |
/**
* @author Ed Spencer (http://sencha.com)
* Transition plugin for DataViews
*/
Ext.ux.DataViewTransition = Ext.extend(Object, {
/**
* @property defaults
* @type Object
* Default configuration options for all DataViewTransition instances
*/
defaults: {
duration : 750,
... | JavaScript |
/**
* Plugin for displaying a progressbar inside of a paging toolbar
* instead of plain text.
*/
Ext.define('Ext.ux.ProgressBarPager', {
requires: ['Ext.ProgressBar'],
/**
* @cfg {Number} width
* <p>The default progress bar width. Default is 225.</p>
*/
width : 225,
/**
* @cfg ... | JavaScript |
/**
* Paging Memory Proxy, allows to use paging grid with in memory dataset
*/
Ext.define('Ext.ux.data.PagingMemoryProxy', {
extend: 'Ext.data.proxy.Memory',
alias: 'proxy.pagingmemory',
alternateClassName: 'Ext.data.PagingMemoryProxy',
read : function(operation, callback, scope){
var reader ... | JavaScript |
/**
* @author Ed Spencer (http://sencha.com)
* Transition plugin for DataViews
*/
Ext.define('Ext.ux.DataView.Animated', {
/**
* @property defaults
* @type Object
* Default configuration options for all DataViewTransition instances
*/
defaults: {
duration : 750,
idProper... | JavaScript |
/**
* @author Ed Spencer
*/
Ext.define('Ext.ux.DataView.DragSelector', {
requires: ['Ext.dd.DragTracker', 'Ext.util.Region'],
/**
* Initializes the plugin by setting up the drag tracker
*/
init: function(dataview) {
/**
* @property dataview
* @type Ext.view.View
... | JavaScript |
/**
* @author Ed Spencer
*
<pre><code>
Ext.create('Ext.view.View', {
mixins: {
draggable: 'Ext.ux.DataView.Draggable'
},
initComponent: function() {
this.mixins.draggable.init(this, {
ddConfig: {
ddGroup: 'someGroup'
}
});
this.call... | JavaScript |
/**
*
*/
Ext.define('Ext.ux.DataView.LabelEditor', {
extend: 'Ext.Editor',
alignment: 'tl-tl',
completeOnEnter: true,
cancelOnEsc: true,
shim: false,
autoSize: {
width: 'boundEl',
height: 'field'
},
labelSelector: 'x-editable',
requires: [
'Ext.form.... | JavaScript |
/**
* This plugin allow you to reorder tabs of a TabPanel.
*/
Ext.define('Ext.ux.TabReorderer', {
extend: 'Ext.ux.BoxReorderer',
itemSelector: '.x-tab',
init: function(tabPanel) {
var me = this;
me.callParent([tabPanel.getTabBar()]);
// Ensure reorderable property is c... | JavaScript |
/**
* <p>A plugin for Field Components which creates clones of the Field for as
* long as the user keeps filling them. Leaving the final one blank ends the repeating series.</p>
* <p>Usage:</p>
* <pre><code>
{
xtype: 'combo',
plugins: [ Ext.ux.FieldReplicator ],
triggerAction: 'all',
... | JavaScript |
// A DropZone which cooperates with DragZones whose dragData contains
// a "field" property representing a form Field. Fields may be dropped onto
// grid data cells containing a matching data type.
Ext.define('Ext.ux.dd.CellFieldDropZone', {
extend: 'Ext.dd.DropZone',
constructor: function(cfg){
cfg = ... | JavaScript |
Ext.define('Ext.ux.dd.PanelFieldDragZone', {
extend: 'Ext.dd.DragZone',
constructor: function(cfg){
cfg = cfg || {};
if (cfg.ddGroup) {
this.ddGroup = cfg.ddGroup;
}
},
// Call the DRagZone's constructor. The Panel must have been rendered.
init: function(panel) {
... | JavaScript |
/*
* Note that this control will most likely remain as an example, and not as a core Ext form
* control. However, the API will be changing in a future release and so should not yet be
* treated as a final, stable API at this time.
*/
/**
* A control that allows selection of between two Ext.ux.form.MultiSelect co... | JavaScript |
/**
* A control that allows selection of multiple items in a list.
*/
Ext.define('Ext.ux.form.MultiSelect', {
extend: 'Ext.form.FieldContainer',
mixins: {
bindable: 'Ext.util.Bindable',
field: 'Ext.form.field.Field'
},
alternateClassName: 'Ext.ux.Multiselect',
al... | JavaScript |
Ext.define('Ext.ux.form.SearchField', {
extend: 'Ext.form.field.Trigger',
alias: 'widget.searchfield',
trigger1Cls: Ext.baseCSSPrefix + 'form-clear-trigger',
trigger2Cls: Ext.baseCSSPrefix + 'form-search-trigger',
hasSearch : false,
paramName : 'query',
initComponent: function() {
... | JavaScript |
/**
* @deprecated
* Ext.ux.RowExpander has been promoted to the core framework. Use
* {@link Ext.grid.plugin.RowExpander} instead. Ext.ux.RowExpander is now just an empty
* stub that extends Ext.grid.plugin.RowExpander for backward compatibility reasons.
*/
Ext.define('Ext.ux.RowExpander', {
extend: 'Ext.grid... | JavaScript |
/**
* Plugin which allows items to be dropped onto a toolbar and be turned into new Toolbar items.
* To use the plugin, you just need to provide a createItem implementation that takes the drop
* data as an argument and returns an object that can be placed onto the toolbar. Example:
* <pre>
* Ext.create('Ext.ux.Too... | JavaScript |
/**
* Event maker.
*/
Ext.define('Ext.ux.event.Maker', {
eventQueue: [],
startAfter: 500,
timerIncrement: 500,
currentTiming: 0,
constructor: function(config) {
var me = this;
me.currentTiming = me.startAfter;
if(!Ext.isArray(conf... | JavaScript |
/**
* @extends Ext.ux.event.Driver
* Event recorder.
*/
Ext.define('Ext.ux.event.Recorder', function () {
function samePt (pt1, pt2) {
return pt1.x == pt2.x && pt1.y == pt2.y;
}
return {
extend: 'Ext.ux.event.Driver',
eventsToRecord: function () {
var key = { kind: '... | JavaScript |
/**
* Recorder manager.
* Used as a bookmarklet:
*
* javascript:void(window.open("../ux/event/RecorderManager.html","recmgr"))
*/
Ext.define('Ext.ux.event.RecorderManager', {
extend: 'Ext.panel.Panel',
alias: 'widget.eventrecordermanager',
uses: [
'Ext.ux.event.Recorder',
'Ext.ux.e... | JavaScript |
/**
* This is the base class for {@link Ext.ux.event.Recorder} and {@link Ext.ux.event.Player}.
*/
Ext.define('Ext.ux.event.Driver', {
active: null,
mixins: {
observable: 'Ext.util.Observable'
},
constructor: function (config) {
var me = this;
me.mixins.observable.constructor... | JavaScript |
/**
* This class manages the playback of an array of "event descriptors". For details on the
* contents of an "event descriptor", see {@link Ext.ux.event.Recorder}. The events recorded by the
* {@link Ext.ux.event.Recorder} class are designed to serve as input for this class.
*
* The simplest use of this class is... | JavaScript |
/**
* The Preview enables you to show a configurable preview of a record.
*
* This plugin assumes that it has control over the features used for this
* particular grid section and may conflict with other plugins.
*/
Ext.define('Ext.ux.PreviewPlugin', {
extend: 'Ext.AbstractPlugin',
alias: 'plugin.preview',... | JavaScript |
/**
* Plugin for PagingToolbar which replaces the textfield input with a slider
*/
Ext.define('Ext.ux.SlidingPager', {
requires: [
'Ext.slider.Single',
'Ext.slider.Tip'
],
/**
* Creates new SlidingPager.
* @param {Object} config Configuration options
*/
constructor : fu... | JavaScript |
/**
* This plugin can enable a cell to cell drag and drop operation within the same grid view.
*
* Note that the plugin must be added to the grid view, not to the grid panel. For example, using {@link Ext.panel.Table viewConfig}:
*
* viewConfig: {
* plugins: {
* ptype: 'celldragdrop',
... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.