INNER CODE UNIT · JavaScript
createTable
sheerun/graphqlviz · index.js:381
function createTable (context) {
var result = '"' + context.typeName + '" '
result +=
'[label=<<TABLE COLOR="' +
context.color +
'" BORDER="0" CELLBORDER="1" CELLSPACING="0">'
result +=
'<TR><TD PORT="__title"' +
(this.theme.header.invert ? ' BGCOLOR="' + context.color + '"' : '') +
'><FONT COLOR="' +
(this.theme.header.invert ? 'WHITE' : context.color) +
'">' +
(_.isEmpty(context.stereotype) || context.stereotype === 'null'
? ''
: '«' + context.stereotype + '»<BR/>') +
'<B>' +
context.typeName +
'</B></FONT></TD></TR>'