控制Calendar Primefaces组件

时间:2016-05-03 15:53:29

标签: primefaces controls

我正在使用p:calendar Primefaces组件来指定2个日期:开始和结束。

明显的控制是验证结束日期是否不在开始日期之前。 有办法吗?

1 个答案:

答案 0 :(得分:1)

我找到了解决方案:

override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        if(indexPath.row == <some position> ){
            let vc: AnyObject! = self.storyboard?.instantiateViewControllerWithIdentifier("YOUR_DESTINATION_IDENTIFIER")
            self.showViewController(vc as! SWRevealViewController, sender: vc)
        }
相关问题