This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('textarea').each(function(index, obj){ | |
$wrapper = $(obj).closest('.input-control.text-input'); | |
var width = $wrapper.width(); | |
$wrapper.css('width', ''); | |
$(obj).css('width', width + 'px'); | |
$(obj).resizable(); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var dataLabelName = "JS - Move Worklist"; //THIS IS WHERE YOU NEED TO SPECIFY YOUR UNIQUE NAME | |
$('.runtime-form').append('<div class="slideout"><div class="slideout__tab"></div><form class="slideout__form"><div class="slideout__placeholder"/></form></div>'); | |
var view = $('[name="' + dataLabelName + '"]').closest('.view'); | |
var viewHeader = $(view).find('.panel-header'); | |
$(viewHeader).appendTo('.slideout__tab'); | |
$(view).appendTo('.slideout__form'); | |
var slideToggle = function () { | |
var slideout = $(".slideout"); | |
return slideout[0].classList.toggle('show'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var controls = '<div class="hamburger-wrapper"><button class="hamburger">☰</button><button class="cross">˟</button></div>'; | |
$('.runtime-form.theme-entry').prepend(controls); | |
$( '.hamburger').click(function() { | |
$('.tab-box-tabs').slideToggle('slow', function() { | |
$('.hamburger').hide(); | |
$('.cross').show(); | |
}); | |
}); | |
$('.cross').click(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "preview", | |
"title": "K2 Workflow Api" | |
}, | |
"host": "porsche-test.onk2.com", | |
"basePath": "/Api/Workflow/Preview", | |
"schemes": [ | |
"https" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "v1", | |
"title": "Microsoft Graph Example" | |
}, | |
"host": "graph.windows.net", | |
"schemes": [ "https"], | |
"produces": [ "application/json" ], | |
"paths": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "K2 and MongoDB integration", | |
"description": "Sample file", | |
"version": "0.0.1" | |
}, | |
"host": "localhost:3000", | |
"schemes": [ | |
"http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var path = require('path'); | |
var cookieParser = require('cookie-parser'); | |
var logger = require('morgan'); | |
var indexRouter = require('./routes/index'); | |
var usersRouter = require('./routes/users'); | |
var mongoRouter = require('./routes/mongo'); | |
var app = express(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Create a simple table to hold data. | |
CREATE TABLE [dbo].[Sales]( | |
[OrderId] INT PRIMARY KEY, | |
[Product] NVARCHAR(50) NULL, | |
[Qty] INT NULL, | |
[GroupId] INT NULL | |
) | |
GO | |
--Create a simple data to hold User/Group relations. | |
CREATE TABLE [dbo].[GroupUsers]( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var panelBody = $('[name="dlblViewIdentifier"]').closest('.view').find('.panel-body'); | |
$(panelBody).css('background-image', 'url("/Runtime/Image.ashx?ImID=0000000")'); //ImageID is taken from the hidden control | |
$(panelBody).css('background-repeat', 'no-repeat'); | |
$(panelBody).css('background-size', 'auto'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "K2 Azure Function Demo", | |
"description": "Used to demo integration with Azure Function", | |
"version": "0.0.1" | |
}, | |
"host": "k2-rest-broker-demo.azurewebsites.net", | |
"schemes": [ "https" ], | |
"produces": [ |