MCPcopy Create free account
hub / github.com/angular-rust/ux-charts / create_tooltip_or_legend

Method create_tooltip_or_legend

src/basechart.rs:497–509  ·  view source on GitHub ↗

Creates an absolute positioned div with styles specified by [style]. TODO: retusns Element

(&self, style: HashMap<String, String>)

Source from the content-addressed store, hash-verified

495 /// Creates an absolute positioned div with styles specified by [style].
496 // TODO: retusns Element
497 pub fn create_tooltip_or_legend(&self, style: HashMap<String, String>) -> Option<bool> {
498 // return DivElement()
499 // ..style.background_color = style["background_color"]
500 // ..style.borderColor = style["borderColor"]
501 // ..style.borderStyle = "solid"
502 // ..style.borderWidth = "${style["borderWidth"]}px"
503 // ..style.color = style["color"]
504 // ..style.fontFamily = style["fontFamily"]
505 // ..style.font_size = "${style["font_size"]}px"
506 // ..style.fontStyle = style["fontStyle"]
507 // ..style.position = "absolute";
508 unimplemented!()
509 }
510
511 // TODO: return Element
512 pub fn create_tooltip_or_legend_item(&self, color: String, text: String) -> Option<bool> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected