SmartClient creating a new component instance

Source: Internet
Author: User

SmartClient itself provides a number of standard components, such as tree components, table components, menu components, button components, etc.

The JSP page introduces the SmartClient class library:

<script>var isomorphicdir= "<%=path%>/isomorphic/";</script>
  <script SRC=isomorphic/ system/modules/isc_history.js></script> 
 <script src=isomorphic/system/modules/isc_core.js> </SCRIPT>  
<script src=isomorphic/system/modules/isc_foundation.js></script> 
< SCRIPT src=isomorphic/system/modules/isc_containers.js></script>   
<script SRC=isomorphic/system/ modules/isc_grids.js></script> 
 <script src=isomorphic/system/modules/isc_forms.js></ script>  
<script src=isomorphic/system/modules/isc_databinding.js></script> 
<SCRIPT SRC =isomorphic/skins/silverwave/load_skin.js></script>

New List Component

varlistgrid=isc. Listgrid.create (); Invoke Query method

Listgrid.fetchdata ();


New Horizontal layout

Isc. Hlayout.create ({

      width:<span style= "font-family: Song body, SimSun;" >1</span>00,//Specifies the width

      members:[//The specified member to form

         ISC. Label.create ({<span style= "font-family: Song body, SimSun;" >//Create a label instance </span><span style= "font-family: Arial, SimSun;" >...</span>});

         Isc. Label.create ({//<span style= "font-family: Song body, SimSun;" > Create a Label instance </span><span style= "font-family: Song body, SimSun;" >...</span>})
<span style= "font-family: Song body, SimSun;" ></span>     ]
});



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.