readDataSource

readDataSource - Specifies whether the datasource is read on ContextMenu widget initialization or not.
Its default value is true.


<div id="contextmenu1"></div>

<div id="contexttarget" style="margin-left:40px; width:400px; height:300px; display:inline-block; background-color: #e3e3e3;">
    <ul style="margin-top:100px; margin-left:100px;">
        <li>Row One</li>
        <li>Row Two</li>
    </ul>
</div>

<script type="text/javascript">

    $(function () {
        $("#contextmenu1").shieldContextMenu({
            target: "#contexttarget",
            filter: "li"
            readDataSource: true,
            dataSource: {
                 data: [
                    {
                        content: "Cut"
                    },
                    {
                        content: "Copy"
                    },
                    {
                        content: "Paste"
                    }
                 ]
            }
        });
     });

</script>