.close float: right; font-size: 28px; font-weight: bold; cursor: pointer; color: #aaa;
deleteChannel(id) if (confirm('Are you sure you want to delete this channel?')) this.channels = this.channels.filter(channel => channel.id !== id); this.saveToStorage(); this.renderChannels(); samsung channel editor
renderChannels() const filtered = this.getFilteredChannels(); if (filtered.length === 0) this.channelListContainer.innerHTML = '<div class="empty-state">No channels found</div>'; return; this.channelListContainer.innerHTML = filtered.map(channel => ` <div class="channel-item" data-id="$channel.id"> <div class="channel-number">$channel.number</div> <div class="channel-name"> $channel.logo ? `<img src="$channel.logo" style="width: 24px; height: 24px; vertical-align: middle; margin-right: 10px;">` : '' $this.escapeHtml(channel.name) </div> <div class="channel-category">$channel.category</div> <div class="channel-source">$channel.source</div> <div class="channel-actions"> <button class="icon-btn edit-btn" onclick="channelEditor.editChannel($channel.id)" title="Edit"> ✏️ </button> <button class="icon-btn delete-btn" onclick="channelEditor.deleteChannel($channel.id)" title="Delete"> 🗑️ </button> </div> </div> `).join(''); .close float: right
// Channel Editor Class class SamsungChannelEditor constructor() this.channels = []; this.currentEditId = null; this.loadFromStorage(); this.initElements(); this.attachEventListeners(); this.renderChannels(); channel.id !== id)
.channel-number font-weight: 600; color: #007bff;