Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
I
iTasks-SDK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 77
    • Issues 77
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • clean-and-itasks
  • iTasks-SDK
  • Merge Requests
  • !148

Merged
Created May 08, 2018 by Mart Lubbers@mlubbersOwner

Resolve "buttons on a tabset should be moved to the actual tabbar header"

  • Overview 2
  • Commits 3
  • Pipelines 1
  • Changes 5

Closes #217 (closed)

You can create cool things like:

module test

import qualified Data.Map as DM
import iTasks

Start w = startEngineWithOptions
	(\as o->(Just {o & autoLayout=True}, []))
	(parallel
		[(Embedded, tab "tab1")
		,(Embedded, tab "tab2")
		]
		[ OnAction (Action "New") (always (Embedded, tab "New tab"))
		, OnAction (Action " ") (always (Embedded, tab "New tab"))
		, OnAction (Action "Close") (never (Embedded, \_->treturn ()))
		, OnAction (Action "Dis no icon") (never (Embedded, \_->treturn ()))
		, OnAction (Action "+") (always (Embedded, \_->tab "New tab"))
		]
	<<@ ArrangeWithTabs True
	<<@ ApplyLayout (setActionIcon ('DM'.put " " "new" 'DM'.newMap))
	) w

tab title _ = tune (Title title) (viewInformation title [] ()
	>>* [OnAction (Action "Close") (always (treturn ()))])
Edited Nov 20, 2019 by Mart Lubbers
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: 217-buttons-on-a-tabset-should-be-moved-to-the-actual-tabbar-header