Angular2材质复选框,工具栏,nd按钮组件随css一起显示.但sidenav没有用css显示.上面提供的图片.
使用过的代码
<md-sidenav-layout fullscreen>
<md-sidenav #start (open)="mybutton.focus()">
Start Sidenav.
<br>
<button md-button #mybutton (click)="start.close()">Close</button>
</md-sidenav>
<md-sidenav #end align="end">
End Sidenav.
<button md-button (click)="end.close()">Close</button>
</md-sidenav>
My regular content. This will be moved into the proper DOM at runtime.
</md-sidenav-layout>
My regular content. This will be moved into the proper DOM at runtime.
</md-sidenav-layout>
Run Code Online (Sandbox Code Playgroud)
组件文件
import { Component } from "@angular/core";
import { MdSidenav } from '@angular2-material/sidenav';
import { MdCheckbox } from '@angular2-material/checkbox';
import { MdButton } from '@angular2-material/button';
import { …Run Code Online (Sandbox Code Playgroud) 我正在尝试从我的JSF Web应用程序中打印pdf文档.
当我findPrinter()从main方法调用方法时,PrintServices找到了,但是当我从网页调用此方法时PrintService找不到.下面提到的代码..
public static void main(final String[] args) throws Exception {
PrintTest printTest = new PrintTest();
printTest.findPrinter();
}
public void findPrinter() {
PrintService[] printServices = PrinterJob.lookupPrintServices();
System.out.println("Print Services Length :: " + printServices.length);
for (PrintService printService : printServices) {
System.out.println("PrintService :: " + printService);
}
<h:form>
<p:commandButton value="Print" action="#{printTest.findPrinter()}"/>
</h:form>
Run Code Online (Sandbox Code Playgroud)
有什么建议...
我想在p:calendar的周末和假期申请css.我试图beforeShowDay使用jQuery 调用
事件并基于条件设置css.
<script>
$(document).ready(function(){
$(".hasDatepicker").datepicker("option", "beforeShowDay", function (date) {
//If condition true
return [true,'holidays'];
//else
return [true,''];
});
});
</script>
<style>
.holidays {background-color: wheat;}
</style>
<h:form prependId="false">
<p:calendar/>
</h:form>
Run Code Online (Sandbox Code Playgroud)
但事件并没有被解雇.还有什么我想念的,还是其他方法?