.selectdemoSelectHeader {
/* Please note: All these selectors are only applied to children of elements with the 'selectdemoSelectHeader' class */ }
.selectdemoSelectHeader .demo-header-searchbox {
border: none;
outline: none;
height: 100%;
width: 100%;
padding: 0; }
.selectdemoSelectHeader .demo-select-header {
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(0, 0, 0, 0.12);
padding-left: 10.667px;
height: 48px;
cursor: pointer;
position: relative;
display: flex;
align-items: center;
width: auto; }
.selectdemoSelectHeader md-content._md {
max-height: 240px; }
/*
Copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that can be foundin the LICENSE file at https://material.angularjs.org/HEAD/license.
*/
JavaScript
// http://pdfmake.org/playground.html
var app = angular
.module('MyApp', ['ngMaterial', 'ngMessages', 'material.svgAssetsCache']);
app.controller('FormAngCtrl', function ($scope, $element) {
$scope.data = {"jaun": "asdasda"};
$scope.vegetables = ['Corn', 'Onions', 'Kale', 'Arugula', 'Peas', 'Zucchini'];
$scope.searchTerm;
$scope.clearSearchTerm = function () {
$scope.searchTerm = '';
};
// The md-select directive eats keydown events for some quick select
// logic. Since we have a search input here, we don't need that logic.
$element.find('input').on('keydown', function (ev) {
ev.stopPropagation();
});
$scope.export = function () {
var data_1;
var data_2;
var data_3;
var data_4;
html2canvas(document.getElementById('Div_1'), {
onrendered: function (canvas) {
data_1 = canvas.toDataURL();
}
});
html2canvas(document.getElementById('Div_2'), {
onrendered: function (canvas) {
data_2 = canvas.toDataURL();
}
});
html2canvas(document.getElementById('Div_3'), {
onrendered: function (canvas) {
data_3 = canvas.toDataURL();
}
});
html2canvas(document.getElementById('Div_4'), {
onrendered: function (canvas) {
data_4 = canvas.toDataURL();
}
});
html2canvas(document.getElementById('Div_5'), {
onrendered: function (canvas) {
var data_5 = canvas.toDataURL();
var docDefinition = {
content: [{
image: data_1,
width: 500,
},
{
image: data_2,
width: 500,
},
{
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.