dijit.layout

Dojo dijit.layout.TabContainer - how to add class to tab?

给你一囗甜甜゛ 提交于 2020-01-15 09:33:07
问题 Ho to add class to the tab in TabContainer? Only thing I've found is set iconClass. However I need to add class to the parent div in tab. Not to some nested divs inside it. 回答1: Not a simple way, but I got access to the tab button in the tabcontainer object. var tabContainer = ...; dojo.addClass(tabContainer.tablist.pane2button["123"].domNode, "myTabClass"); http://jsfiddle.net/cswing/N2hsG/ 回答2: Building on Craig's suggestion, here's the modern way of doing it: // assuming there is only one

Dojo: BorderContainer and ContentPanes not working inside of a custom widget template

吃可爱长大的小学妹 提交于 2020-01-02 08:44:09
问题 Hey guys, im trying to create some custom templated widgets with dijit.layout objects (BorderContainer, ContentPane) in the template, and i just can't get it to work. Maybe SO can steer me in the right direction... here's my code so far: test.html <html> <head> <title>Test Page</title> <style type="text/css"> @import "http://ajax.googleapis.com/ajax/libs/dojo/1.4.1/dojo/resources/dojo.css"; @import "http://ajax.googleapis.com/ajax/libs/dojo/1.4.1/dijit/themes/tundra/tundra.css"; html, body,

Dojo: BorderContainer and ContentPanes not working inside of a custom widget template

元气小坏坏 提交于 2020-01-02 08:43:57
问题 Hey guys, im trying to create some custom templated widgets with dijit.layout objects (BorderContainer, ContentPane) in the template, and i just can't get it to work. Maybe SO can steer me in the right direction... here's my code so far: test.html <html> <head> <title>Test Page</title> <style type="text/css"> @import "http://ajax.googleapis.com/ajax/libs/dojo/1.4.1/dojo/resources/dojo.css"; @import "http://ajax.googleapis.com/ajax/libs/dojo/1.4.1/dijit/themes/tundra/tundra.css"; html, body,

dojo Datagrid filter select that allows user to select from a list of values in the column

强颜欢笑 提交于 2019-12-24 05:55:22
问题 I m using dojo datagrid which contains 2 columns "name" and "age" , the requirement is to provide the filtering option on the "name" column in the datagrid. so that user can search and select his/her name from the list of values ,by clicking on the header of the name column. Is there any option that need to set in layout for the same. can some one please help on this. var layout = [ {field: "Name", name: "Name", width: '200px' }, {field: "Age", name: "Age", width: '100px' }, ]; var

Dgrid Resizing within BorderContainer

China☆狼群 提交于 2019-12-23 12:26:36
问题 I have a dgrid within a BorderContainer with "liveSplitters" enabled (using Dojo 1.8). The dgrid comes up nicely, but when I move the splitter between the left column and the "leading" column (that the dgrid is within), the dgrid does not properly resize. However, if I resize the window a tad, then the dgrid snaps back into a proper size (i.e. filling 100% of the "leading" pane of the BorderContainer). I have dgrid set to 100% width in CSS. Is there some way I need to tell dgrid to refresh

Dojo: Programatically setting checkbox label for adding on TableContainer

对着背影说爱祢 提交于 2019-12-14 03:25:05
问题 after some hours of checking out documentation, I am somewhat desperate: Basically I need to populate a TabContainer with some TextBoxes, and some Checkboxes. All theses neatly arranged: Labels to the left, fields to the right. To have this done I use a TableContainer that I add to the TabContainer, create the TextFields and add them to the TableContainer. All is rendered ok. But when it comes to a checkbox, I can't find the trick to have a label displayed at all. If I: - add a label

How to add a `HTML label` before a `ValidationTextBox` dynamically?

痞子三分冷 提交于 2019-12-12 03:33:35
问题 I need to add dynamically HTML labels before each ValidationTextBox . ValidationTextBox and HTML label are created accordingly to the number of property present for object data . I would need an example on how to do it. Example: http://jsfiddle.net/F2qAN/97/#run dojo.require("dijit.form.ValidationTextBox"); dojo.require("dijit.layout.ContentPane"); function build() { var data = { name: 'a', surname: 'b', age: 'c' }, validationTextBox, layout = new dijit.layout.ContentPane({}); Object.keys

Dojo is not working

自古美人都是妖i 提交于 2019-12-11 19:39:51
问题 I am new at dojo and here is my code: <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojo/resources/dojo.css"></link> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/tundra/tundra.css"></link> <link rel="stylesheet" type="text/css" href="../../../../resources/themes/default/styles/layout.css" th:href="@{/resources/default/styles/layout.css}"></link> <script type="text/javascript" src="http:

Dijit Tabcontainer inside a custom widget-Tablist width runs too long

你说的曾经没有我的故事 提交于 2019-12-10 17:38:53
问题 I have a templated custom widget that inherits from dijit.layout._LayoutWidget, dijit._Container, and dijit._Templated which gives my widget native Widget support for resizing, etc. All I need is a TabContainer, which is sized to the size of widget. Here is my widget. <div dojoAttachPoint="containerNode"> <div dojoType="dijit.layout.TabContainer" tabPosition="top" style="width:100%;height:100%" > <div dojoType="dijit.layout.ContentPane" title="tab" selected="true"> hello </div> </div> </div>

How do I “get” the ID for a “clicked” tab in a dijit.layout.tabcontainer?

非 Y 不嫁゛ 提交于 2019-12-08 05:16:49
问题 I haven't been able to find a clearly defined solution for this. Most are incomplete snippets. Here is a simple sample. See the doSomething() comment: <head> <style type="text/css"> body, html { font-family:helvetica,arial,sans-serif; font-size:90%; } </style> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css"/> <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js" djConfig="parseOnLoad: true"> <