Skip to content
Discussion options

You must be logged in to vote

it work! thanks

#[derive(Debug, Clone)]
pub struct InventoryItem {
    pub item_code: String,
    pub item_desc: String,
    pub stock_quantity: Decimal,
    pub used_quantity: Decimal,
    pub available_quantity: Decimal,
}


pub struct HelloWorld {
    pub table_state: Entity<TableState<MyTableDelegate>>,
    pub grouped_inventory: HashMap<String, Vec<InventoryItem>>,
    pub checked_rows: HashSet<usize>,
    pub select_all: bool,
}

impl HelloWorld {
    pub fn new(window: &mut Window, cx: &mut Context<Self>) -> Self {
............

}}
use crate::model::InventoryItem;
use crate::windows::HelloWorld;
use gpui::*;
use gpui_component::checkbox::Checkbox;
use gpui_component::table::{Column, 

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MoNaEcho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants