附錄\A.類別參數 (class parameters). HardCoding使用\selects

該元件為info-selectsclass

用例

綠色標注部分為FormColumninfolight-options的屬性,黃色為combogridinfolight-options屬性。
以下有兩個欄位使用了selects,前一個為CustomerID用有資料來源的方法,後一個EmployeeID用的是 items的方法,青色部份為Items

                        <div data-role="fieldcontain">

                            <label for="dataFormMaster_CustomerID">CusSelects</label><select id="dataFormMaster_CustomerID" name="CustomerID" data-mini="true" infolight-options="field:'CustomerID',width:120,align:'left',remoteName:'sOrders.Customers',tableName:'Customers',displayMember:'CompanyName',valueMember:'CustomerID'" class="info-selects" data-native-menu="false">

                            </select>

                        </div>

-----------------------------------------------------------------------------------------------------------------------------------------

                        <div data-role="fieldcontain">

                            <label for="dataFormMaster_EmployeeID">EmployeeID</label><select id="dataFormMaster_EmployeeID" name="EmployeeID" data-mini="true" infolight-options="field:'EmployeeID',width:120,align:'left',defaultValue:{type:'remote',value:['getEmployeeID']}" class="info-selects" data-native-menu="false">

                                <option value="1">Nancy</option>

                                <option value="2">Andrew </option>

                                <option value="3">Janet </option>

                            </select>

                        </div>

infolight-options

名稱

功能描述

displayMember

顯示資料欄位

remoteName

設定連接的Server端以及對應取資料的InfoCommand。格式:server專案名稱.連接的InfoCommandID

tableName

設定實際連接的InfoCommand的名稱

valueMember

保存資料值欄位

 

 

Top of Page