HIGHLIGHT MODE
This commit is contained in:
@@ -6,8 +6,8 @@ use crate::state::pages::canvas_state::CanvasState;
|
||||
|
||||
pub struct FormState {
|
||||
pub id: i64,
|
||||
pub fields: Vec<String>, // Use Vec<String> for dynamic field names
|
||||
pub values: Vec<String>, // Store field values dynamically
|
||||
pub fields: Vec<String>,
|
||||
pub values: Vec<String>,
|
||||
pub current_field: usize,
|
||||
pub has_unsaved_changes: bool,
|
||||
pub current_cursor_pos: usize,
|
||||
@@ -33,6 +33,8 @@ impl FormState {
|
||||
area: Rect,
|
||||
theme: &Theme,
|
||||
is_edit_mode: bool,
|
||||
is_highlight_mode: bool,
|
||||
highlight_anchor: Option<(usize, usize)>,
|
||||
total_count: u64,
|
||||
current_position: u64,
|
||||
) {
|
||||
@@ -48,6 +50,8 @@ impl FormState {
|
||||
&values,
|
||||
theme,
|
||||
is_edit_mode,
|
||||
is_highlight_mode,
|
||||
highlight_anchor,
|
||||
total_count,
|
||||
current_position,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user