Fixed double-click handling for column width reset
This commit is contained in:
@@ -2,6 +2,7 @@ import importlib
|
||||
import logging
|
||||
import re
|
||||
|
||||
import pandas as pd
|
||||
from bs4 import Tag
|
||||
from fastcore.xml import FT
|
||||
from fasthtml.fastapp import fast_app
|
||||
@@ -10,9 +11,9 @@ from rich.table import Table
|
||||
from starlette.routing import Mount
|
||||
|
||||
from myfasthtml.core.constants import Routes, ROUTE_ROOT
|
||||
from myfasthtml.core.dsl.exceptions import DSLSyntaxError
|
||||
from myfasthtml.core.dsl.types import Position
|
||||
from myfasthtml.core.dsls import DslsManager
|
||||
from myfasthtml.core.dsl.exceptions import DSLSyntaxError
|
||||
from myfasthtml.test.MyFT import MyFT
|
||||
|
||||
utils_app, utils_rt = fast_app()
|
||||
@@ -181,6 +182,10 @@ def is_datalist(elt):
|
||||
return False
|
||||
|
||||
|
||||
def is_null(v):
|
||||
return v is None or pd.isna(v) or pd.isnull(v)
|
||||
|
||||
|
||||
def quoted_str(s):
|
||||
if s is None:
|
||||
return "None"
|
||||
@@ -326,7 +331,7 @@ def make_safe_id(s: str | None):
|
||||
def make_unique_safe_id(s: str | None, existing_ids: list):
|
||||
if s is None:
|
||||
return None
|
||||
|
||||
|
||||
base = make_safe_id(s)
|
||||
res = base
|
||||
i = 1
|
||||
@@ -335,6 +340,7 @@ def make_unique_safe_id(s: str | None, existing_ids: list):
|
||||
i += 1
|
||||
return res
|
||||
|
||||
|
||||
def get_class(qualified_class_name: str):
|
||||
"""
|
||||
Dynamically loads and returns a class type from its fully qualified name.
|
||||
|
||||
Reference in New Issue
Block a user