protected override Task OnInitializedAsync()
        {
            lookUps.Add("usastates", ListItem.CreateList("Alabama,Alaska,Arizona,Arkansas,California,Colorado", "AL,AK,AZ,AR,CA,CO"));
            lookUps.Add("canadastates", ListItem.CreateList("Albertam,British Columbia,Manitoba,New Brunswick", "AB,BC,MB,NB"));
            Document = Service.GetMockDocument();
            JSONText = Document.JSONSerialize <Document>();
            if (Document.Sections.Count > 0)
            {
                Section = Document.Sections[0];
                Page    = Section.Pages[0];
                Tab     = Page.Tabs[0];
            }

            return(base.OnInitializedAsync());
        }
Ejemplo n.º 2
0
        protected override Task OnInitializedAsync()
        {
            //@onchange="@(e=>valueChanged(e,fld))"
            lookUps.Add("countries", ListItem.CreateList("Select Country,Canada,USA,Uruguay", ",CA,US,UY"));
            lookUps.Add("usastates", ListItem.CreateList("Select State,Alabama,Alaska,Arizona,Arkansas,California,Colorado", ",AL,AK,AZ,AR,CA,CO"));
            lookUps.Add("canadastates", ListItem.CreateList("Select State,Alberta,British Columbia,Manitoba,New Brunswick", ",AB,BC,MB,NB"));
            lookUps.Add("uruguaystates", ListItem.CreateList("Select State,Montevideo,Punta del Este,Colonia", ",MVD,PE,CO"));
            Document = Service.GetMockDocument();
            FieldBase.OnValueChanged += FieldBase_OnValueChanged;
            if (Document.Sections.Count > 0)
            {
                Section = Document.Sections[0];
                Page    = Section.Pages[0];
                Tab     = Page.Tabs[0];
            }

            return(base.OnInitializedAsync());
        }