blob: 21b11772336d0da9a150db62242f7f28bfea2e1b [file] [log] [blame]
<link rel="import" href="../../../../packages/polymer/polymer.html">
<link rel="import" href="instance_ref.html">
<polymer-element name="eval-link">
<template>
<style>
.idle {
color: #0489c3;
cursor: pointer;
}
.busy {
color: #aaa;
cursor: wait;
}
</style>
<template if="{{ busy }}">
<span class="busy">{{ label }}</span>
</template>
<template if="{{ !busy }}">
<span class="idle"><a on-click="{{ evalNow }}">{{ label }}</a></span>
</template>
<template if="{{ result != null }}">
= <instance-ref ref="{{ result }}"></instance-ref>
</template>
</template>
</polymer-element>
<script type="application/dart" src="eval_link.dart"></script>