ep-html-view.html

<dom-module id="ep-html-view">
    <style>
        :host {
            @apply(--vbox-layout);
        }
    </style>

    <template>
        <cc-source-editor id="editor" class="flex" value="{{searchParam.html_cont}}" editable="true" mode-disabled="true"></cc-source-editor>
    </template>

    <script>
        Polymer({
            is : "ep-html-view",
            properties : {
                searchParam : {
                    type : Object,
                    value : function() {
                        return {};
                    }
                },
                titleText : {
                    type : String,
                    value : function() {
                        return "내용보기";
                    }
                }
            },

            initialized : function()
            {
                var me = this;
            },
            
            load : function(param)
            {
                var me = this;

                me.set("searchParam.html_cont", param.html_cont || "");
                
                me.$.editor.$.tabNavi.selectedIndex = 1;
            },
        });
    </script>
</dom-module>
var popupEpHtmlView = UT.popup("ep-html-view", me, 1000, 800, {}, {titleText:"내용보기"});
popupEpHtmlView.show();
popupEpHtmlView.getWindowContent().load({html_cont:data.mail_cont});