Пример #1
0
        /// <summary>
        /// set inline format for the column; value from valProp is used to replace #Value in the format
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <typeparam name="TH"></typeparam>
        /// <param name="builder"></param>
        /// <param name="helper">awesome editor helper</param>
        /// <param name="valProp">grid model property to get value from, when not set will use Column.Bind; </param>
        /// <returns></returns>
        public static T Inline <T, TH>(this T builder, IAwesomeHelper <TH> helper, string valProp = null) where T : IInlColBuilder
        {
            helper.Svalue("#Value");
            helper.Prefix("#Prefix");

            setFormat(builder, helper, valProp);

            return(builder);
        }
Пример #2
0
        /// <summary>
        /// set inline format for the column; value from valProp is used to replace #Value in the format
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="helper">awesome editor helper</param>
        /// <param name="valProp">grid model property to get value from, when not set will use Column.Bind; </param>
        /// <returns></returns>
        public ColumnModCfg Inline <T>(IAwesomeHelper <T> helper, string valProp = null)
        {
            helper.Svalue("#Value");
            helper.Prefix("#Prefix");
            tag.Format    = helper.ToString();
            tag.ValProp   = valProp ?? column.Bind;
            tag.ModelProp = helper.Awe.Prop;

            return(this);
        }
Пример #3
0
        /// <summary>
        /// add awe helper parameter
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="helper"></param>
        /// <returns></returns>
        public InlineFuncOptions Param <T>(IAwesomeHelper <T> helper)
        {
            helper.Svalue("#Value");
            helper.Prefix("#Prefix");

            if (tag.ModelProp == null)
            {
                tag.ModelProp = helper.Awe.Prop;
            }

            AddParams.Add(helper.ToString());
            return(this);
        }