Skip to contents

Element Plus's el-anchor-link, for el_anchor(links =).

Usage

el_anchor_link(title, href, ...)

Arguments

title

The link's text.

href

Where it points: "#section".

...

Links one level down, each an el_anchor_link().

Value

A link, for el_anchor(links =).

Binding

No argument follows v_bind(): a link is drawn by el_anchor() from R.

Examples

el_anchor(
  "an",
  links = list(
    el_anchor_link("Basic Usage", "#basic-usage"),
    el_anchor_link(
      "API",
      "#api",
      el_anchor_link("Attributes", "#attributes"),
      el_anchor_link("Events", "#events")
    )
  )
)
#> <div id="an" data-shiny-vue style="display: contents">
#>   <script type="text/x-template" data-shiny-vue-template><div id="an_container" style="display: contents">
#>   <el-anchor v-bind="$optional(&#39;anchor&#39;)" @change="handleChange">
#>     <el-anchor-link title="Basic Usage" href="#basic-usage"></el-anchor-link>
#>     <el-anchor-link title="API" href="#api">
#>       <template v-slot:sub-link>
#>         <el-anchor-link title="Attributes" href="#attributes"></el-anchor-link>
#>         <el-anchor-link title="Events" href="#events"></el-anchor-link>
#>       </template>
#>     </el-anchor-link>
#>   </el-anchor>
#> </div></script>
#>   <script type="application/json" data-shiny-vue-options>{"options":{"data":{"container":null,"offset":null,"bound":null,"duration":null,"marker":null,"type":null,"direction":null,"selectScrollTop":null},"methods":{"handleChange":"function(href) { window.Shiny && Shiny.setInputValue && Shiny.setInputValue('an', href); }"}},"input":null,"rate":null,"type":null,"use":["shinyElement.plugin"],"optional":{"anchor":{"container":"container","offset":"offset","bound":"bound","duration":"duration","marker":"marker","type":"type","direction":"direction","select-scroll-top":"selectScrollTop"}},"evals":["options.methods.handleChange"]}</script>
#> </div>