(&self)
| 462 | } |
| 463 | |
| 464 | pub fn update_tooltip_content(&self) { |
| 465 | let props = self.props.borrow(); |
| 466 | let column_count = self.data.meta.len(); |
| 467 | let row = self.data.frames.get(props.focused_entity_index as usize); |
| 468 | // tooltip.innerHtml = ""; |
| 469 | |
| 470 | // // Tooltip title |
| 471 | // tooltip.append(DivElement() |
| 472 | // ..text = row[0] |
| 473 | // ..style.padding = "4px 12px" |
| 474 | // ..style.fontWeight = "bold"); |
| 475 | |
| 476 | // Tooltip items. |
| 477 | for idx in 1..column_count { |
| 478 | // let state = props.channel_states.get(idx - 1); |
| 479 | // if (state == Visibility::hidden) continue; |
| 480 | // if (state == Visibility::hiding) continue; |
| 481 | |
| 482 | // let channel = channels[i - 1]; |
| 483 | // let value = row[i]; |
| 484 | // if (value == null) continue; |
| 485 | |
| 486 | // value = tooltip_value_formatter(value); |
| 487 | // let label = tooltip_label_formatter(channel.name); |
| 488 | |
| 489 | // let e = create_tooltip_or_legendItem( |
| 490 | // channel.color, "$label: <strong>$value</strong>"); |
| 491 | // tooltip.append(e); |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | /// Creates an absolute positioned div with styles specified by [style]. |
| 496 | // TODO: retusns Element |
nothing calls this directly
no outgoing calls
no test coverage detected