/// <summary>
        /// Create editable text
        /// </summary>
        /// <param name="data">data to show</param>
        /// <param name="ui">ui properties</param>
        public static UXImage CreateUXImage(Marshalling.MarshallingHash data, Marshalling.MarshallingHash ui)
        {
            UXImage ux = new UXImage();

            ux.Bind(data);
            ux.Bind(ui);
            return(ux);
        }
예제 #2
0
        /// <summary>
        /// Create an image
        /// </summary>
        /// <param name="properties">props</param>
        /// <param name="id">ux id</param>
        /// <param name="text">ux text</param>
        /// <returns>ux read only text</returns>
        public static UXImage CreateImage(Marshalling.MarshallingHash properties, string id, string fileName)
        {
            UXImage im = UXImage.CreateUXImage("image", () =>
            {
                return(new Dictionary <string, dynamic>()
                {
                    { "Id", id },
                    { "ImageFile", fileName }
                });
            });

            if (properties != null)
            {
                im.Bind(properties);
            }
            return(im);
        }