예제 #1
0
 public ElementRef(Ui ui, Value128?id = default)
 {
     _ui = ui;
     _id = id;
 }
 public static ElementRef ruby(this Ui ui, object inner, Value128?id       = default) => InlineDirective(ui, HtmlTags.Ruby, inner, id);
 public static ElementRef script(this Ui ui, object inner, Value128?id     = default) => InlineDirective(ui, HtmlTags.Script, inner, id);
예제 #4
0
 public static ElementRef button(this Ui ui, Action <Ui> closure, Value128?id     = default) => NestedDirective(ui, HtmlTags.Button, closure, id);
    public static ElementRef form(this Ui ui, object inner, string action = default, string autocomplete = default, string accesskey = default, string @class = default, string contenteditable = default, Value128?id = default)
    {
        #region Attributes

        if (action != default)
        {
            ui.PushAttribute(nameof(action), action);
        }
        if (autocomplete != default)
        {
            ui.PushAttribute(nameof(autocomplete), autocomplete);
        }
        if (accesskey != default)
        {
            ui.PushAttribute(nameof(accesskey), accesskey);
        }
        if (@class != default)
        {
            ui.PushAttribute(nameof(@class), @class);
        }
        if (contenteditable != default)
        {
            ui.PushAttribute(nameof(contenteditable), contenteditable);
        }

        #endregion

        return(InlineDirective(ui, HtmlTags.Form, inner, id));
    }
예제 #6
0
 public static ElementRef video(this Ui ui, Action <Ui> closure, Value128?id      = default) => NestedDirective(ui, HtmlTags.Video, closure, id);
예제 #7
0
    public static ElementRef script(this Ui ui, Action <Ui> closure, string async = default, string accesskey = default, string @class = default, string contenteditable = default, Value128?id = default)
    {
        #region Attributes

        if (async != default)
        {
            ui.PushAttribute(nameof(async), async);
        }
        if (accesskey != default)
        {
            ui.PushAttribute(nameof(accesskey), accesskey);
        }
        if (@class != default)
        {
            ui.PushAttribute(nameof(@class), @class);
        }
        if (contenteditable != default)
        {
            ui.PushAttribute(nameof(contenteditable), contenteditable);
        }

        #endregion

        return(NestedDirective(ui, HtmlTags.Script, closure, id));
    }
 public static ElementRef dialog(this Ui ui, object inner, Value128?id     = default) => InlineDirective(ui, HtmlTags.Dialog, inner, id);
 public static ElementRef fieldset(this Ui ui, object inner, Value128?id   = default) => InlineDirective(ui, HtmlTags.Fieldset, inner, id);
예제 #10
0
 public static ElementRef colgroup(this Ui ui, object inner, Value128?id   = default) => InlineDirective(ui, HtmlTags.Colgroup, inner, id);
예제 #11
0
 public static ElementRef datalist(this Ui ui, object inner, Value128?id   = default) => InlineDirective(ui, HtmlTags.Datalist, inner, id);
예제 #12
0
 public static ElementRef canvas(this Ui ui, object inner, Value128?id     = default) => InlineDirective(ui, HtmlTags.Canvas, inner, id);
예제 #13
0
 public static ElementRef blockquote(this Ui ui, object inner, Value128?id = default) => InlineDirective(ui, HtmlTags.Blockquote, inner, id);
예제 #14
0
    public static ElementRef img(this Ui ui, object inner, string alt = default, string accesskey = default, string @class = default, string contenteditable = default, Value128?id = default)
    {
        #region Attributes

        if (alt != default)
        {
            ui.PushAttribute(nameof(alt), alt);
        }
        if (accesskey != default)
        {
            ui.PushAttribute(nameof(accesskey), accesskey);
        }
        if (@class != default)
        {
            ui.PushAttribute(nameof(@class), @class);
        }
        if (contenteditable != default)
        {
            ui.PushAttribute(nameof(contenteditable), contenteditable);
        }

        #endregion

        return(InlineDirective(ui, HtmlTags.Img, inner, id));
    }
예제 #15
0
 public static ElementRef summary(this Ui ui, Action <Ui> closure, Value128?id    = default) => NestedDirective(ui, HtmlTags.Summary, closure, id);
예제 #16
0
 public static ElementRef legend(this Ui ui, object inner, Value128?id     = default) => InlineDirective(ui, HtmlTags.Legend, inner, id);
예제 #17
0
 public static ElementRef textarea(this Ui ui, Action <Ui> closure, Value128?id   = default) => NestedDirective(ui, HtmlTags.Textarea, closure, id);
예제 #18
0
 public static ElementRef option(this Ui ui, object inner, Value128?id     = default) => InlineDirective(ui, HtmlTags.Option, inner, id);
예제 #19
0
    public static ElementRef input(this Ui ui, Action <Ui> closure, string accept = default, string alt = default, string autocomplete = default, string accesskey = default, string @class = default, string contenteditable = default, Value128?id = default)
    {
        #region Attributes

        if (accept != default)
        {
            ui.PushAttribute(nameof(accept), accept);
        }
        if (alt != default)
        {
            ui.PushAttribute(nameof(alt), alt);
        }
        if (autocomplete != default)
        {
            ui.PushAttribute(nameof(autocomplete), autocomplete);
        }
        if (accesskey != default)
        {
            ui.PushAttribute(nameof(accesskey), accesskey);
        }
        if (@class != default)
        {
            ui.PushAttribute(nameof(@class), @class);
        }
        if (contenteditable != default)
        {
            ui.PushAttribute(nameof(contenteditable), contenteditable);
        }

        #endregion

        return(NestedDirective(ui, HtmlTags.Input, closure, id));
    }
예제 #20
0
 public static ElementRef picture(this Ui ui, object inner, Value128?id    = default) => InlineDirective(ui, HtmlTags.Picture, inner, id);
예제 #21
0
 public static ElementRef blockquote(this Ui ui, Action <Ui> closure, Value128?id = default) => NestedDirective(ui, HtmlTags.Blockquote, closure, id);
예제 #22
0
 public static ElementRef progress(this Ui ui, object inner, Value128?id   = default) => InlineDirective(ui, HtmlTags.Progress, inner, id);
예제 #23
0
 public static ElementRef canvas(this Ui ui, Action <Ui> closure, Value128?id     = default) => NestedDirective(ui, HtmlTags.Canvas, closure, id);
예제 #24
0
 public static ElementRef textarea(this Ui ui, object inner, Value128?id   = default) => InlineDirective(ui, HtmlTags.Textarea, inner, id);