Tell me about DHTMLX.

Source: Internet
Author: User

Website Link: http://dhtmlx.com/docs/products/dhtmlxTouch/description

DHTMLX is a powerful feature that is powerful as a free and open source HTML5-based JavaScript LIBRARY,DHX. [It ' s not just a set of UI widgets, but a the complete framework of this allows you to create eye-catching, robust web applic Ations this run on IOS, Android, and other mobile platforms.]

The basic syntax for DHTML is Dhx.ui ({.. \ \ Define a view, place any component})

$$ (' row_logs ') Declaration ID? Reference ID to find the corresponding control

Event

Ondocumentready DHX. Ready (function () {...}) The alternative to ' Ondocumentready ' event is DHX. Ready (function () {...}) function. So, to ensure that your code would be executed as soon as the page finishes loading, put all your code inside this function   . Similar to onload

Type: "Mainbar"
Type: "Round"
Header:true
{
ID: "Grid", View: "Grid", Header:true,
fields:[{ID: "Name",
Label: "Name",
...
},
{ID: "email",//specifies the second column of the grid
Label: "Email",
}]
Understand the relationship between view and element: Each view is a bit like the Framelayout in Android

$ (document). Ready (function () {} jquery when the page is loaded

Dhx.ready when Documen has been loaded

Layout

Toolbar.push ({"width":d iv_width_gap});
{Template: "Top"},
Template: "<div style= ' float:left ' ><div class= ' title ' > #title #</div> <div class= ' author ' >by # Author#</div></div> "
1 setting boundaries to separate components
The control 1 "type is used to specify the interval between blocks. Layout blocks (' cols ' or ' rows ')
Dhx.ui ({type: "Space",//Specifies a type of the border rows:[{...})
There is no space between all views of ' line ', but there is a thread
' Wide ', there is no interval between the parent view, and there are gaps between the child views
' Head ' like wide
' Clean ' does not have any spacing
' Space ' all the views between the intervals
or type:{height:35}

DHTMLX Touch allows to set border, padding and margin of a component.
Control 2:padding Margin
Padding is the inner margin, which is the distance between the content and the border, and the margin is the margin, which is the distance from the border to the other elements in the angle of the container.

The dynamic setting size and the adjustment call Resize (), all child child elements of the element and the parent container are re-determined in size.
{
View: "Toolbar", type: "Subbar",
elements:[{View: "button", inputwidth:200, Value: "Resize", click:resize}]
},

   function Resize () {
   $$ (' List1 '). Define ("height", 300);
$$ (' List1 '). Define ("width", 500);
   $$ (' List1 '). Resize ();
   };
Resizes the element to the size of its parent element, but the child element size does not change
function Adjust () {
document.getElementById (' DIVB '). style.height= "200px";
List2.adjust ();
}
If you want to modify the size of multiple child elements within the same parent container, you can pass the Resize (true) method of the parent container. Implementation: redraws all child elements.
$$ (' List1 '). Define ("width", 300);
$$ (' List2 '). Define ("width", 100);
...
$$ (' layout_id '). Resize (true);

..

Ordering system Example of the example is I in the demo based on the modification completed, and the original application is not very big difference:
Here is one of the other apps that I have on the interface:

interested friends are welcome to communicate!!!


Talk about DHTMLX

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.