thierryH91200 / Thsidebar
Licence: apache-2.0
NSOutlineView and badge
Stars: ✭ 38
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Thsidebar
Badgenumbermanager
An Android library supports badge notification like iOS in Huawei, Xiaomi, OPPO and vivo launchers.
Stars: ✭ 617 (+1523.68%)
Mutual labels: badge
Anycodable
Type-erased wrappers for Encodable, Decodable, and Codable values
Stars: ✭ 811 (+2034.21%)
Mutual labels: codable
Bettercodable
Better Codable through Property Wrappers
Stars: ✭ 953 (+2407.89%)
Mutual labels: codable
Bootstrap Maxlength
This plugin integrates by default with Twitter bootstrap using badges to display the maximum lenght of the field where the user is inserting text. Uses the HTML5 attribute "maxlength" to work.
Stars: ✭ 743 (+1855.26%)
Mutual labels: badge
Best Practices Badge
🏆Core Infrastructure Initiative Best Practices Badge
Stars: ✭ 928 (+2342.11%)
Mutual labels: badge
Navigationtabbar
Navigation tab bar with colorful interactions.
Stars: ✭ 4,907 (+12813.16%)
Mutual labels: badge
Jsontocodable
A generating tool from Raw JSON to Codable (Swift4) text written in Swift4.
Stars: ✭ 33 (-13.16%)
Mutual labels: codable
Ppbadgeview
iOS Custom Badge, Support UIView, UITabBarItem, UIBarButtonItem ,Support Objective-C/Swift; iOS自定义Badge组件, 支持UIView, UITabBarItem, UIBarButtonItem, 支持Objective-C/Swift
Stars: ✭ 807 (+2023.68%)
Mutual labels: badge
Simplerecyclerview
A RecyclerView extension for building list more easily.
Stars: ✭ 953 (+2407.89%)
Mutual labels: drag-drop
Counterfab
A FloatingActionButton subclass that shows a counter badge on right top corner
Stars: ✭ 725 (+1807.89%)
Mutual labels: badge
Badges4 Readme.md Profile
👩💻👨💻 Improve your README.md profile with these amazing badges.
Stars: ✭ 929 (+2344.74%)
Mutual labels: badge
Silex
Silex is a static website builder in the cloud.
Stars: ✭ 958 (+2421.05%)
Mutual labels: drag-drop
Sortable
Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
Stars: ✭ 23,641 (+62113.16%)
Mutual labels: drag-drop
Dom Examples
Code examples that accompany various MDN DOM and Web API documentation pages
Stars: ✭ 984 (+2489.47%)
Mutual labels: drag-drop
Url Encoded Form
📝 Parse and serialize url-encoded form data with Codable support.
Stars: ✭ 32 (-15.79%)
Mutual labels: codable
Ruby Gem Downloads Badge
Clean and simple gem downloads count badge, courtesy of http://shields.io/. You can checkout the application directly at the following URL:
Stars: ✭ 29 (-23.68%)
Mutual labels: badge
SideBarDemo
NSOutlineView and badge
THSideBar
THSideBar framework written in Swift for OS X
Usage
look at example
Initialize the THSideBar
var sideBarViewController : THSideBarViewController?
Add THSideBar to the view hierarchy
self.sideBarViewController = THSideBarViewController()
addSubview(subView: (sideBarViewController?.view)!, toView: sourceView)
sideBarViewController?.delegate = self
sideBarViewController?.allowDragAndDrop = false/true
sideBarViewController?.saveSection = false/true
setUpLayoutConstraints(item: sideBarViewController!.view, toItem: sourceView)
self.sideBarViewController!.view.setFrameSize( NSMakeSize(100, 200))
Init data
let item1 = Account(name:"ContentView1", icon:NSImage (named: NSImage.Name(rawValue: "Human_resource"))!, nameView: "ContentView1Controller", badge: "10", colorBadge: .blue)
let item2 = Account(name:"ContentView2", icon:NSImage (named: NSImage.Name(rawValue: "Human_resource"))!, nameView: "ContentView2Controller", badge: "-5", colorBadge: .red)
let item3 = Account(name:"ContentView3", icon:NSImage (named: NSImage.Name(rawValue: "employee"))!, nameView: "ContentView3Controller", badge: "3", colorBadge: .blue)
let item4 = Account(name:"ContentView4", icon:NSImage (named: NSImage.Name(rawValue: "employee"))!, nameView: "ContentView4Controller", badge: "1", colorBadge: .blue)
account1.accounts.append(item1)
account1.accounts.append(item2)
account2.accounts.append(item3)
account2.accounts.append(item4)
allSection.sections.removeAll()
allSection.sections.append(account1)
allSection.sections.append(account2)
allSection.dump()
sideBarViewController?.initData( allSection: allSection )
create all the viewController
extension MainWindowController: THSideBarViewDelegate
{
func changeView(item : Item)
{
var vc = NSView()
if item.nameView == "City" {
nameCity = item.name
NotificationCenter.send(.updateView)
return
}
switch item.nameView
{
case "ContentView1Controller":
vc = contentView1Controller.view
case "ContentView2Controller":
vc = contentView2Controller.view
case "ContentView3Controller":
vc = contentView3Controller.view
case "ContentView4Controller":
vc = contentView4Controller.view
case "ContentView5Controller":
vc = contentView5Controller.view
case "ContentView6Controller":
vc = contentView6Controller.view
case "ContentView7Controller":
vc = contentView7Controller.view
default:
vc = contentView1Controller.view
}
addSubview(subView: vc, toView: tableTargetView)
vc.translatesAutoresizingMaskIntoConstraints = false
var viewBindingsDict = [String: AnyObject]()
viewBindingsDict["vc"] = vc
tableTargetView.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "H:|[vc]|", options: [], metrics: nil, views: viewBindingsDict))
tableTargetView.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "V:|[vc]|", options: [], metrics: nil, views: viewBindingsDict))
}
Custom NSOutlineView
var isSaveSection = true // Ideal for dynamic sections
var colorBackGround = NSColor.blue
var rowSizeStyle = NSTableView.RowSizeStyle.small
var allowDragAndDrop = true
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].