Ejemplo n.º 1
0
        //----------------------------------------------------------------------------------------------------
        private void ProcessModelKey_ForInput(M model, HtmlElement modelKeyElement, JsString modelKeyCmd)
        {
            var arr = modelKeyCmd.trim().split(':');

            if (arr.length < 2)
            {
                string modelKey   = arr[0].trim();
                string modelValue = JsObj.O(model).Property(modelKey);
                J(modelKeyElement).val(modelValue);
            }
            else
            {
                string elementAttrName = arr[0].trim();
                string modelKey        = arr[1].trim();
                string modelValue      = JsObj.O(model).Property(modelKey);
                J(modelKeyElement).attr(elementAttrName, modelValue);
            }
        }