Exemple #1
0
        public static JsTypeInfo ToJsTypeInfo(this Type type, bool isSearch, string prefix)
        {
            var result = new JsTypeInfo()
            {
                name         = Navigator.ResolveWebTypeName(type),
                niceName     = type.NiceName(),
                creable      = Navigator.IsCreable(type, isSearch),
                findable     = Finder.IsFindable(type),
                preConstruct = new JRaw(Constructor.ClientManager.GetPreConstructorScript(new ClientConstructorContext(type, prefix))),
                avoidPopup   = (Navigator.Manager.EntitySettings.TryGetC(type)?.AvoidPopup) ?? false,
            };

            return(result);
        }
Exemple #2
0
        public static JsTypeInfo ToJsTypeInfo(this Type type, bool isSearch, string prefix)
        { 
            var result = new JsTypeInfo()
            {
                name = Navigator.ResolveWebTypeName(type),
                niceName = type.NiceName(),
                creable = Navigator.IsCreable(type, isSearch),
                findable = Finder.IsFindable(type),
                preConstruct = new JRaw(Constructor.ClientManager.GetPreConstructorScript(new ClientConstructorContext(type, prefix))),
                avoidPopup = (Navigator.Manager.EntitySettings.TryGetC(type)?.AvoidPopup) ?? false,
            };

            return result;
        }