mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
add request text argument for new tab action
This commit is contained in:
parent
404da1fa74
commit
5ce6090d7a
6 changed files with 18 additions and 10 deletions
|
|
@ -32,10 +32,10 @@ pub struct Page {
|
|||
|
||||
impl Page {
|
||||
// Construct
|
||||
pub fn new(name: GString) -> Page {
|
||||
pub fn new(name: GString, navigation_request_text: Option<GString>) -> Page {
|
||||
// Init components
|
||||
let content = Arc::new(Content::new());
|
||||
let navigation = Arc::new(Navigation::new());
|
||||
let navigation = Arc::new(Navigation::new(navigation_request_text));
|
||||
|
||||
// Init widget
|
||||
let widget = Box::builder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue